diff --git a/xls2ddl/tmpls.py b/xls2ddl/tmpls.py index 7ebce12..b4acc98 100644 --- a/xls2ddl/tmpls.py +++ b/xls2ddl/tmpls.py @@ -450,7 +450,8 @@ async with db.sqlorContext(dbname) as sor: } } {% endif %} - tblfields = {{json.dumps([ f.name for f in fields ])}} + tblfields = {{json.dumps(fields, ensure_ascii=False)}} + tblfname = [ f.name for f in tblfields.keys() ] other_keys = [ k for k in ns.keys() if k in tblfields and k != 'id' ] if len(other_keys) > 0: r = await sor.U('{{summary[0].name}}', ns)