search-with-images2
All checks were successful
Deploy on push / deploy (push) Successful in 1m7s

This commit is contained in:
Untone 2024-06-02 15:58:14 +03:00
parent 465d9093bd
commit 0abb4d605d

View File

@ -309,7 +309,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
with local_session() as session: with local_session() as session:
shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all() shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all()
for shout in shouts: for shout in shouts:
shout["score"] = scores[int(shout.id)] shout.score = scores[int(shout.id)]
return shouts return shouts
return [] return []