postprocess-query-for-order-2
All checks were successful
Deploy to core / deploy (push) Successful in 1m43s

This commit is contained in:
Untone 2024-02-14 10:51:43 +03:00
parent 3488282c14
commit 9b174d94c6

View File

@ -227,7 +227,7 @@ async def load_authors_by(_, _info, by, limit, offset):
authors = await get_authors_from_query(q)
order = by.get('order')
if order:
authors = sorted(authors, key=lambda a: a['stat'].get(order, 0), reverse=True)
authors = sorted(authors, key=lambda a: a.stat.get(order, 0), reverse=True)
return authors