code: def __update_rating(uid, rating):
          '''
          Update the rating for post.
          '''
          entry = TabPost.update(
              rating=rating
          ).where(TabPost.uid == uid)
          entry.execute(f __update_rating(uid, rating):
          '''
          Update the rating for post.
          '''
          entry = TabPost.update(
              rating=rating
          ).where(TabPost.uid == uid)
          entry.execute()
docs: Update the rating for post.