bugfic
This commit is contained in:
parent
b83c9e27d6
commit
311a9055fe
@ -282,14 +282,14 @@ def build_get_data(pat: str, desc: dict):
|
||||
desc = desc.copy()
|
||||
desc.sql = construct_get_data_sql(desc)
|
||||
s = e.renders(get_data_tmpl, desc)
|
||||
with codecs.open(os.path.join(pat, f'get_{desc.tblname}.dspy', "utf-8"), 'w') as f:
|
||||
with codecs.open(os.path.join(pat, f'get_{desc.tblname}.dspy'), 'w', "utf-8") as f:
|
||||
f.write(filter_backslash(s))
|
||||
|
||||
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'), 'w') as f:
|
||||
with codecs.open(os.path.join(pat, 'check_changed.dspy'), 'w', "utf-8") as f:
|
||||
f.write(filter_backslash(s))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user