This commit is contained in:
parent
1185880f8e
commit
809b980145
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user