Skip to content

Commit

Permalink
fix python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiesims committed Jan 31, 2025
1 parent 8ed3940 commit 2280b47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def search_docs():

# schedule the async function and get the result
future = asyncio.ensure_future(search_all_docs(query))
results = loop.run_until_complete(future) if not loop.is_running() else future.result()
results = (
loop.run_until_complete(future)
if not loop.is_running()
else future.result()
)

sorted_results = process_and_sort_results(results, query)

Expand Down

0 comments on commit 2280b47

Please sign in to comment.