From 3a865e89a21c345dc0899894b380363b3442433e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 29 May 2026 19:47:43 +0800 Subject: [PATCH] fix: wrap desc in DictObject for attribute access in subtable2toolbar --- xls2ddl/xls2crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xls2ddl/xls2crud.py b/xls2ddl/xls2crud.py index 324f754..fcc0819 100644 --- a/xls2ddl/xls2crud.py +++ b/xls2ddl/xls2crud.py @@ -97,7 +97,7 @@ def subtable2toolbar(desc): def build_crud_ui(crud_data: dict, dbdesc: dict): uidir = crud_data.output_dir tables = [ k for k in dbdesc.keys() ] - desc = dbdesc[crud_data.tblname].copy() + desc = DictObject(**dbdesc[crud_data.tblname].copy()) desc.update(crud_data.params.copy()) subtable2toolbar(desc) binds = desc.binds or []