code: def run_update_cat(_):
      '''
      Update the catagery.
      '''
      recs = MPost2Catalog.query_all().objects()
      for rec in recs:
          if rec.tag_kind != 'z':
              print('-' * 40)
              print(rec.uid)
              print(rec.tag_id)
              print(rec.par_id)
  
              MPost2Catalog.update_field(rec.uid, par_id=rec.tag_id[:2] + "00"f run_update_cat(_):
      '''
      Update the catagery.
      '''
      recs = MPost2Catalog.query_all().objects()
      for rec in recs:
          if rec.tag_kind != 'z':
              print('-' * 40)
              print(rec.uid)
              print(rec.tag_id)
              print(rec.par_id)
  
              MPost2Catalog.update_field(rec.uid, par_id=rec.tag_id[:2] + "00")
docs: Update the catagery.