mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-20 04:31:06 +00:00
[AB-xxx] fixing deployment of zip artifacts named the same name being deployed twice
This commit is contained in:
@@ -23,7 +23,8 @@ def deploy_template_folder(db_config, folder):
|
||||
print('Deploying %s templates from folder %s' % (len(templates), folder))
|
||||
|
||||
with engine.connect() as con:
|
||||
statement = text("""INSERT INTO template(key, content, last_modified) VALUES(:key, :content, NOW()) ON CONFLICT (key) DO UPDATE SET content = :content""")
|
||||
with con.begin():
|
||||
statement = text("""INSERT INTO template(key, content, last_modified) VALUES(:key, :content, NOW()) ON CONFLICT (key) DO UPDATE SET content = :content""")
|
||||
|
||||
for line in templates:
|
||||
con.execute(statement, **line)
|
||||
for line in templates:
|
||||
con.execute(statement, **line)
|
||||
|
||||
Reference in New Issue
Block a user