generated comment

This commit is contained in:
2021-08-28 21:12:08 +02:00
parent a63076c07c
commit 95fbafb217
4 changed files with 18 additions and 0 deletions

View File

@ -42,6 +42,15 @@ for table in schema["tables"]:
column["jstype"] = 'number'
table["selectors"] = [ y["name"] for y in sorted([ x for x in columns if "selector" in x ], key=lambda x: x["selector"])]
schema["GENERATED_SQL_COMMENT"] = """
-- THIS FILE HAS BEEN GENERATED
-- DO NOT EDIT MANUALLY
"""
schema["GENERATED_PYTHON_COMMENT"] = """
# THIS FILE HAS BEEN GENERATED
# DO NOT EDIT MANUALLY
"""
for f in glob.glob(args.template):
print(f"process {f}")
tmpl = Template(file=f, searchList=[schema])