mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(nodes): fix typo in list_sessions
handler (#3109)
The typo accidentally did not affect functionality; when `query==""`, it `search()`ed but found everything due to empty query, then paginated results, so it worked the same as `list()`. Still fix it
This commit is contained in:
commit
d1c0050e65
@ -51,7 +51,7 @@ async def list_sessions(
|
||||
query: str = Query(default="", description="The query string to search for"),
|
||||
) -> PaginatedResults[GraphExecutionState]:
|
||||
"""Gets a list of sessions, optionally searching"""
|
||||
if filter == "":
|
||||
if query == "":
|
||||
result = ApiDependencies.invoker.services.graph_execution_manager.list(
|
||||
page, per_page
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user