Skip to content

Commit

Permalink
fix(nodes): fix typo in list_sessions handler (invoke-ai#3109)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lstein authored Apr 4, 2023
2 parents 5cd513e + ecdfa13 commit d1c0050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invokeai/app/api/routers/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit d1c0050

Please sign in to comment.