From f41359b8c98e436ef440f914e1b89a14b54322f8 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 18:59:00 +0300 Subject: [PATCH] search-with-images33 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index fe0f9952..7e142bdf 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -306,7 +306,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0): shout_id = str(shout_id) scores[shout_id] = sr.get("score") hits_ids.append(shout_id) - result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique() + result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique().first() if result: logger.debug(result) shouts = []