From 2280b473f26f68013db0931b67b1b709abd3679a Mon Sep 17 00:00:00 2001 From: Abbie Sims Date: Fri, 31 Jan 2025 17:31:49 +0400 Subject: [PATCH] fix python linting --- webapp/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/app.py b/webapp/app.py index 216d455b..f556ae51 100644 --- a/webapp/app.py +++ b/webapp/app.py @@ -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)