This commit is contained in:
parent
9d265fa3f9
commit
db8472ae06
|
@ -306,7 +306,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
||||||
shout_id = str(shout_id)
|
shout_id = str(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())
|
||||||
for shout in shouts:
|
for shout in shouts:
|
||||||
shout.score = scores[f"{shout.id}"]
|
shout.score = scores[f"{shout.id}"]
|
||||||
shouts.sort(key=lambda x: x.score, reverse=True)
|
shouts.sort(key=lambda x: x.score, reverse=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user