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,