mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Run python black
This commit is contained in:
parent
abf09fc8fa
commit
2d3094f988
@ -75,13 +75,9 @@ class ApiDependencies:
|
|||||||
db_path.parent.mkdir(parents=True, exist_ok=True)
|
db_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
db_location = str(db_path)
|
db_location = str(db_path)
|
||||||
|
|
||||||
db_conn = sqlite3.connect(
|
db_conn = sqlite3.connect(db_location, check_same_thread=False) # TODO: figure out a better threading solution
|
||||||
db_location, check_same_thread=False
|
|
||||||
) # TODO: figure out a better threading solution
|
|
||||||
|
|
||||||
graph_execution_manager = SqliteItemStorage[GraphExecutionState](
|
graph_execution_manager = SqliteItemStorage[GraphExecutionState](conn=db_conn, table_name="graph_executions")
|
||||||
conn=db_conn, table_name="graph_executions"
|
|
||||||
)
|
|
||||||
|
|
||||||
urls = LocalUrlService()
|
urls = LocalUrlService()
|
||||||
image_record_storage = SqliteImageRecordStorage(conn=db_conn)
|
image_record_storage = SqliteImageRecordStorage(conn=db_conn)
|
||||||
|
@ -258,15 +258,10 @@ def invoke_cli():
|
|||||||
db_location = config.db_path
|
db_location = config.db_path
|
||||||
db_location.parent.mkdir(parents=True, exist_ok=True)
|
db_location.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
db_conn = sqlite3.connect(db_location, check_same_thread=False) # TODO: figure out a better threading solution
|
||||||
db_conn = sqlite3.connect(
|
|
||||||
db_location, check_same_thread=False
|
|
||||||
) # TODO: figure out a better threading solution
|
|
||||||
logger.info(f'InvokeAI database location is "{db_location}"')
|
logger.info(f'InvokeAI database location is "{db_location}"')
|
||||||
|
|
||||||
graph_execution_manager = SqliteItemStorage[GraphExecutionState](
|
graph_execution_manager = SqliteItemStorage[GraphExecutionState](conn=db_conn, table_name="graph_executions")
|
||||||
conn=db_conn, table_name="graph_executions"
|
|
||||||
)
|
|
||||||
|
|
||||||
urls = LocalUrlService()
|
urls = LocalUrlService()
|
||||||
image_record_storage = SqliteImageRecordStorage(conn=db_conn)
|
image_record_storage = SqliteImageRecordStorage(conn=db_conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user