shout-id-fox+test-imports-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
2025-05-29 23:40:27 +03:00
parent e375db4125
commit 1223c1d278
7 changed files with 10 additions and 7 deletions

View File

@@ -473,8 +473,8 @@ async def load_shouts_search(_, info, text, options):
q = apply_sorting(q, options)
shouts = get_shouts_with_links(info, q, limit, offset)
for shout in shouts:
shout.score = scores[f"{shout.id}"]
shouts.sort(key=lambda x: x.score, reverse=True)
shout["score"] = scores[f"{shout['id']}"]
shouts.sort(key=lambda x: x["score"], reverse=True)
return shouts
return []