From d09dfc3e9bdbd9a8522559fb8bd0bc70d205fd94 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:08:44 +1000 Subject: [PATCH] fix(api): use `db_location` instead of `db_path_string` This may just be the SQLite memory sentinel value. --- invokeai/app/api/dependencies.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.py index a102782566..4aaf7a0272 100644 --- a/invokeai/app/api/dependencies.py +++ b/invokeai/app/api/dependencies.py @@ -70,20 +70,20 @@ class ApiDependencies: # TODO: build a file/path manager? db_path = config.db_path db_path.parent.mkdir(parents=True, exist_ok=True) - db_path_string = str(db_path) + db_location = str(db_path) graph_execution_manager = SqliteItemStorage[GraphExecutionState]( - filename=db_path_string, table_name="graph_executions" + filename=db_location, table_name="graph_executions" ) urls = LocalUrlService() - image_record_storage = SqliteImageRecordStorage(db_path_string) + image_record_storage = SqliteImageRecordStorage(db_location) image_file_storage = DiskImageFileStorage(f"{output_folder}/images") names = SimpleNameService() latents = ForwardCacheLatentsStorage(DiskLatentsStorage(f"{output_folder}/latents")) - board_record_storage = SqliteBoardRecordStorage(db_path_string) - board_image_record_storage = SqliteBoardImageRecordStorage(db_path_string) + board_record_storage = SqliteBoardRecordStorage(db_location) + board_image_record_storage = SqliteBoardImageRecordStorage(db_location) boards = BoardService( services=BoardServiceDependencies( @@ -125,7 +125,7 @@ class ApiDependencies: boards=boards, board_images=board_images, queue=MemoryInvocationQueue(), - graph_library=SqliteItemStorage[LibraryGraph](filename=db_path_string, table_name="graphs"), + graph_library=SqliteItemStorage[LibraryGraph](filename=db_location, table_name="graphs"), graph_execution_manager=graph_execution_manager, processor=DefaultInvocationProcessor(), configuration=config,