From 0abb4d605d98030065fbf976a4b7eabea06d6a5e Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 2 Jun 2024 15:58:14 +0300 Subject: [PATCH] search-with-images2 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index d2c3bc26..d5635162 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -309,7 +309,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0): with local_session() as session: shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all() for shout in shouts: - shout["score"] = scores[int(shout.id)] + shout.score = scores[int(shout.id)] return shouts return []