Skip to content

Commit d09dfc3

Browse files
fix(api): use db_location instead of db_path_string
This may just be the SQLite memory sentinel value.
1 parent 66f524c commit d09dfc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

invokeai/app/api/dependencies.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ def initialize(config: InvokeAIAppConfig, event_handler_id: int, logger: Logger
7070
# TODO: build a file/path manager?
7171
db_path = config.db_path
7272
db_path.parent.mkdir(parents=True, exist_ok=True)
73-
db_path_string = str(db_path)
73+
db_location = str(db_path)
7474

7575
graph_execution_manager = SqliteItemStorage[GraphExecutionState](
76-
filename=db_path_string, table_name="graph_executions"
76+
filename=db_location, table_name="graph_executions"
7777
)
7878

7979
urls = LocalUrlService()
80-
image_record_storage = SqliteImageRecordStorage(db_path_string)
80+
image_record_storage = SqliteImageRecordStorage(db_location)
8181
image_file_storage = DiskImageFileStorage(f"{output_folder}/images")
8282
names = SimpleNameService()
8383
latents = ForwardCacheLatentsStorage(DiskLatentsStorage(f"{output_folder}/latents"))
8484

85-
board_record_storage = SqliteBoardRecordStorage(db_path_string)
86-
board_image_record_storage = SqliteBoardImageRecordStorage(db_path_string)
85+
board_record_storage = SqliteBoardRecordStorage(db_location)
86+
board_image_record_storage = SqliteBoardImageRecordStorage(db_location)
8787

8888
boards = BoardService(
8989
services=BoardServiceDependencies(
@@ -125,7 +125,7 @@ def initialize(config: InvokeAIAppConfig, event_handler_id: int, logger: Logger
125125
boards=boards,
126126
board_images=board_images,
127127
queue=MemoryInvocationQueue(),
128-
graph_library=SqliteItemStorage[LibraryGraph](filename=db_path_string, table_name="graphs"),
128+
graph_library=SqliteItemStorage[LibraryGraph](filename=db_location, table_name="graphs"),
129129
graph_execution_manager=graph_execution_manager,
130130
processor=DefaultInvocationProcessor(),
131131
configuration=config,

0 commit comments

Comments
 (0)