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

This commit is contained in:
Untone 2024-06-02 18:41:09 +03:00
parent 9358a86df1
commit c8baa6abf9

View File

@ -308,10 +308,9 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
hits_ids.append(shout_id)
result = local_session().execute(query_shouts()).unique()
if result:
[shouts_result] = result
logger.debug(shouts_result)
logger.debug(result)
shouts = []
for shout in shouts_result:
for shout in result.first():
logger.debug(shout)
shout.score = scores[f"{shout.id}"]
shouts.append(shout)