From f30a50515fb645108a6d1316388b43e07be1b39f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 17 Jul 2025 13:35:37 +0800 Subject: [PATCH] bugfix --- xls2ui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xls2ui.py b/xls2ui.py index e49278e..1c53234 100644 --- a/xls2ui.py +++ b/xls2ui.py @@ -29,6 +29,7 @@ if __name__ == '__main__': print(args) ns = {k:v for k, v in os.environ.items()} dbdesc = build_dbdesc(args.models_dir) + print(f'{type(dbdesc)}') for fn in args.files: print(f'handle {fn}') crud_data = {} @@ -42,8 +43,8 @@ if __name__ == '__main__': # print(f'{fn}\n{json.dumps(crud_data, indent=4, ensure_ascii=False)}') crud_data.params.modulename = args.modulename crud_data.params.tblname = crud_data.tblname + dbdesc = dbdesc.copy() if crud_data.uitype == 'tree': build_tree_ui(crud_data, dbdesc) continue - db = copy.deepcopy(dbdesc) - build_crud_ui(crud_data, db) + build_crud_ui(crud_data, dbdesc)