From 1b838676e33847db2720f412d687a40ce5205692 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 17:07:29 +0300 Subject: [PATCH] search-with-images12 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index 7b0ddb20..66af6ee9 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -305,7 +305,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0): shout_id = int(shout_id) scores[shout_id] = sr.get("score") hits_ids.append(shout_id) - shouts = get_shouts_from_query(query_shouts()) + shouts = await get_shouts_from_query(query_shouts()) for shout in shouts: shout.score = scores[int(shout.id)] shouts.sort(key=lambda x: x.score, reverse=True)