From 4933553d50e195fb81b4bd4c8ff56dd1e98199a8 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 18:52:57 +0300 Subject: [PATCH] search-with-images31 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index ca9fecef..fe0f9952 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))) + result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique() if result: logger.debug(result) shouts = []