From 932e23aa3ef1e6f03586f71ef505ce30fa9fd985 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 7 May 2026 14:22:32 +0800 Subject: [PATCH] bugfix --- xls2ddl/tmpls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xls2ddl/tmpls.py b/xls2ddl/tmpls.py index 6da561c..8107f91 100644 --- a/xls2ddl/tmpls.py +++ b/xls2ddl/tmpls.py @@ -133,7 +133,7 @@ ns['sort'] = '{{relation.outter_field}}_text' sql = '''{{sql}}''' {% if not relation %} filterjson = params_kw.get('data_filter') -fields_str='''{{json.dumps(fields, indent=4, ensure_ascii=False)}}''' +fields_str=r'''{{json.dumps(fields, indent=4, ensure_ascii=False)}}''' ori_fields = json.loads(fields_str) if not filterjson: fields = [ f['name'] for f in ori_fields ]