debug(reader.py: trying back shout id in query call
All checks were successful
Deploy on push / deploy (push) Successful in 52s
All checks were successful
Deploy on push / deploy (push) Successful in 52s
This commit is contained in:
parent
e405fb527b
commit
34a354e9e3
|
@ -423,8 +423,8 @@ async def load_shouts_search(_, info, text, options):
|
||||||
q = apply_sorting(q, options)
|
q = apply_sorting(q, options)
|
||||||
shouts = get_shouts_with_links(info, q, limit, offset)
|
shouts = get_shouts_with_links(info, q, limit, offset)
|
||||||
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)
|
||||||
return shouts
|
return shouts
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user