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

This commit is contained in:
Untone 2024-06-02 19:14:18 +03:00
parent c0b3e90943
commit 25964b6797

View File

@ -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))).unique().first()
result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).all()
if result:
logger.debug(result)
logger.debug(len(result))