code: def run_check_kind(_):
      '''
      Running the script.
      '''
      for kindv in router_post:
          for rec_cat in MCategory.query_all(kind=kindv):
              catid = rec_cat.uid
              catinfo = MCategory.get_by_uid(catid)
              for rec_post2tag in MPost2Catalog.query_by_catid(catid):
                  postinfo = MPost.get_by_uid(rec_post2tag.post_id)
                  if postinfo.kind == catinfo.kind:
                      pass
                  else:
                      print(postinfo.uidf run_check_kind(_):
      '''
      Running the script.
      '''
      for kindv in router_post:
          for rec_cat in MCategory.query_all(kind=kindv):
              catid = rec_cat.uid
              catinfo = MCategory.get_by_uid(catid)
              for rec_post2tag in MPost2Catalog.query_by_catid(catid):
                  postinfo = MPost.get_by_uid(rec_post2tag.post_id)
                  if postinfo.kind == catinfo.kind:
                      pass
                  else:
                      print(postinfo.uid)
docs: Running the script.