code: def update_post(self, postid):
          '''
          The rating of Post should be updaed if the count is greater than 10
  
  
          '''
          voted_recs = MRating.query_by_post(postid)
          if voted_recs.count() > 10:
              rating = MRating.query_average_rating(postid)
          else:
              rating = 5
  
          logger.info('Get post rating: {rating}'.format(rating=rating))
          # MPost.__update_rating(postid, rating)
          MPost.update_misc(postid, rating=ratingf update_post(self, postid):
          '''
          The rating of Post should be updaed if the count is greater than 10
  
  
          '''
          voted_recs = MRating.query_by_post(postid)
          if voted_recs.count() > 10:
              rating = MRating.query_average_rating(postid)
          else:
              rating = 5
  
          logger.info('Get post rating: {rating}'.format(rating=rating))
          # MPost.__update_rating(postid, rating)
          MPost.update_misc(postid, rating=rating)
docs: The rating of Post should be updaed if the count is greater than 10