Fix gen model and schema template formatting (#356)

* Fix gen model column default value

* Update gen templates and schema_name storage

* Fix lint
This commit is contained in:
Wu Clan
2024-07-17 17:06:55 +08:00
committed by GitHub
parent 812b8a0fb7
commit 3d12c3270e
6 changed files with 52 additions and 12 deletions
+2 -1
View File
@@ -11,9 +11,10 @@ class GenTemplate:
def __init__(self):
self.env = Environment(
loader=FileSystemLoader(JINJA2_TEMPLATE_DIR),
autoescape=select_autoescape(['html', 'xml', 'jinja']),
autoescape=select_autoescape(enabled_extensions=['jinja']),
trim_blocks=True,
lstrip_blocks=True,
keep_trailing_newline=True,
enable_async=True,
)