postprocess-query-for-order-2
All checks were successful
Deploy to core / deploy (push) Successful in 1m43s
All checks were successful
Deploy to core / deploy (push) Successful in 1m43s
This commit is contained in:
parent
3488282c14
commit
9b174d94c6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user