fix(workflow_records): fix SQLite workflow insertion to ignore duplicates

This commit is contained in:
psychedelicious 2023-11-29 00:15:35 +11:00
parent eb446471cc
commit 8cf2806489

View File

@ -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(),),