This commit is contained in:
parent
8f2bd30d54
commit
5169cff892
|
@ -306,7 +306,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 = local_session().execute(query_shouts().unique())
|
||||
shouts = local_session().execute(query_shouts()).unique()
|
||||
for shout in shouts:
|
||||
shout.score = scores[int(shout.id)]
|
||||
shouts.sort(key=lambda x: x.score, reverse=True)
|
||||
|
|
|
@ -73,9 +73,7 @@ ignore_logs = [
|
|||
"_trace.atrace",
|
||||
"aiohttp",
|
||||
"_client",
|
||||
"._make_request",
|
||||
"base._log_request_response",
|
||||
"_log_request_response"
|
||||
"base"
|
||||
]
|
||||
for lgr in ignore_logs:
|
||||
loggr = logging.getLogger(lgr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user