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

This commit is contained in:
Untone 2024-06-02 17:07:29 +03:00
parent 8cc9d0d4d3
commit 1b838676e3

View File

@ -305,7 +305,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
shout_id = int(shout_id)
scores[shout_id] = sr.get("score")
hits_ids.append(shout_id)
shouts = get_shouts_from_query(query_shouts())
shouts = await get_shouts_from_query(query_shouts())
for shout in shouts:
shout.score = scores[int(shout.id)]
shouts.sort(key=lambda x: x.score, reverse=True)