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

This commit is contained in:
Untone 2024-06-02 17:25:09 +03:00
parent 8f2bd30d54
commit 5169cff892
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -73,9 +73,7 @@ ignore_logs = [
"_trace.atrace", "_trace.atrace",
"aiohttp", "aiohttp",
"_client", "_client",
"._make_request", "base"
"base._log_request_response",
"_log_request_response"
] ]
for lgr in ignore_logs: for lgr in ignore_logs:
loggr = logging.getLogger(lgr) loggr = logging.getLogger(lgr)