This commit is contained in:
yumoqing 2025-10-23 22:43:52 +08:00
parent c0e1036f6d
commit 193418efa3
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -253,7 +253,7 @@ def build_data_browser(pat: str, desc: dict):
desc.fieldliststr = json.dumps(field_list(desc), ensure_ascii=False, indent=4)
e = MyTemplateEngine([])
s = e.renders(data_browser_tmpl, desc)
with codecs.open(os.path.join(pat, f'index.ui', 'utf-8'), 'w', "utf-8") as f:
with codecs.open(os.path.join(pat, f'index.ui'), 'w', "utf-8") as f:
f.write(filter_backslash(s))
def build_data_new(pat: str, desc: dict):
@ -289,7 +289,7 @@ def build_check_changed(pat:str, desc:dict):
e = MyTemplateEngine([])
desc = desc.copy()
s = e.renders(check_changed_tmpls, desc)
with codecs.open(os.path.join(pat, 'check_changed.dspy', "utf-8"), 'w') as f:
with codecs.open(os.path.join(pat, 'check_changed.dspy'), 'w') as f:
f.write(filter_backslash(s))
if __name__ == '__main__':