From 3c99abab32b3553ad5cbdb4ae40d6c37227bdb0c Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 3 Apr 2023 12:02:58 +1000 Subject: [PATCH] fix(nodes): commit changes to db --- invokeai/app/services/sqlite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invokeai/app/services/sqlite.py b/invokeai/app/services/sqlite.py index e5bba4ad31..fd089014bb 100644 --- a/invokeai/app/services/sqlite.py +++ b/invokeai/app/services/sqlite.py @@ -59,6 +59,7 @@ class SqliteItemStorage(ItemStorageABC, Generic[T]): f"""INSERT OR REPLACE INTO {self._table_name} (item) VALUES (?);""", (item.json(),), ) + self._conn.commit() finally: self._lock.release() self._on_changed(item) @@ -84,6 +85,7 @@ class SqliteItemStorage(ItemStorageABC, Generic[T]): self._cursor.execute( f"""DELETE FROM {self._table_name} WHERE id = ?;""", (str(id),) ) + self._conn.commit() finally: self._lock.release() self._on_deleted(id)