code: def get_last(postid, limit=10):
          '''
          Get the last one of the records.
          '''
          recs = TabPostHist.select().where(
              TabPostHist.post_id == postid
          ).order_by(TabPostHist.time_update.desc()).limit(limit)
          if recs.count():
              return recs.get()
          return Nonf get_last(postid, limit=10):
          '''
          Get the last one of the records.
          '''
          recs = TabPostHist.select().where(
              TabPostHist.post_id == postid
          ).order_by(TabPostHist.time_update.desc()).limit(limit)
          if recs.count():
              return recs.get()
          return None
docs: Get the last one of the records.