load-authors-fix-2
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-05-06 20:04:50 +03:00
parent 1185880f8e
commit 809b980145

View File

@ -163,9 +163,8 @@ async def load_authors_by(_, _info, by, limit, offset):
if order in ["shouts", "followers"]: if order in ["shouts", "followers"]:
authors_query = authors_query.order_by(desc(text(f"{order}_stat"))) authors_query = authors_query.order_by(desc(text(f"{order}_stat")))
# group by # group by
[authors] = get_with_stat(authors_query) authors = get_with_stat(authors_query)
if authors: return authors or []
return authors
@query.field("get_author_follows") @query.field("get_author_follows")