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

This commit is contained in:
Untone 2024-06-02 18:39:05 +03:00
parent 7e8757ec72
commit 9358a86df1

View File

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