code: def query_by_postid(postid, limit=5):
          '''
          Query history of certian records.
          '''
          recs = TabPostHist.select().where(
              TabPostHist.post_id == postid
          ).order_by(
              TabPostHist.time_update.desc()
          ).limit(limit)
          return recf query_by_postid(postid, limit=5):
          '''
          Query history of certian records.
          '''
          recs = TabPostHist.select().where(
              TabPostHist.post_id == postid
          ).order_by(
              TabPostHist.time_update.desc()
          ).limit(limit)
          return recs
docs: Query history of certian records.