From 0fdb05646008f769b7963eb9d29b045bd6c644a1 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 16:05:59 +0300 Subject: [PATCH] search-with-images4 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index a76bc363..4dec0c48 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -309,7 +309,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0): assert "no id!!" shouts = [] with local_session() as session: - shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all() + shouts = session.execute(query_shouts()) for shout in shouts: shout.score = scores[int(shout.id)] return shouts