mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(workflow_records): fix SQLite workflow insertion to ignore duplicates
This commit is contained in:
parent
eb446471cc
commit
8cf2806489
@ -54,7 +54,7 @@ class SqliteWorkflowRecordsStorage(WorkflowRecordsStorageBase):
|
|||||||
self._lock.acquire()
|
self._lock.acquire()
|
||||||
self._cursor.execute(
|
self._cursor.execute(
|
||||||
"""--sql
|
"""--sql
|
||||||
INSERT INTO workflows(workflow)
|
INSERT OR IGNORE INTO workflows(workflow)
|
||||||
VALUES (?);
|
VALUES (?);
|
||||||
""",
|
""",
|
||||||
(workflow.model_dump_json(),),
|
(workflow.model_dump_json(),),
|
||||||
|
Loading…
Reference in New Issue
Block a user