diff --git a/invokeai/app/services/batch_manager_storage.py b/invokeai/app/services/batch_manager_storage.py index a605a9728f..5d25597623 100644 --- a/invokeai/app/services/batch_manager_storage.py +++ b/invokeai/app/services/batch_manager_storage.py @@ -18,12 +18,12 @@ from invokeai.app.invocations.baseinvocation import ( from invokeai.app.services.graph import Graph from invokeai.app.models.image import ImageField -from pydantic import BaseModel, Field, Extra, parse_raw_as +from pydantic import BaseModel, Field, Extra, parse_raw_as, StrictStr, StrictInt, StrictFloat invocations = BaseInvocation.get_invocations() InvocationsUnion = Union[invocations] # type: ignore -BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField]``` +BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField] class Batch(BaseModel): diff --git a/invokeai/app/services/sqlite.py b/invokeai/app/services/sqlite.py index f016995e7b..a98089237a 100644 --- a/invokeai/app/services/sqlite.py +++ b/invokeai/app/services/sqlite.py @@ -29,7 +29,7 @@ class SqliteItemStorage(ItemStorageABC, Generic[T]): self._conn = sqlite3.connect( self._filename, check_same_thread=False ) # TODO: figure out a better threading solution - self._conn.execute("pragma journal_mode=wal") + # self._conn.execute("pragma journal_mode=wal") self._cursor = self._conn.cursor() self._create_table()