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._cursor.execute(
|
||||
"""--sql
|
||||
INSERT INTO workflows(workflow)
|
||||
INSERT OR IGNORE INTO workflows(workflow)
|
||||
VALUES (?);
|
||||
""",
|
||||
(workflow.model_dump_json(),),
|
||||
|
Loading…
Reference in New Issue
Block a user