commit
6b4b637973
|
@ -184,9 +184,11 @@ def author_unfollow(user, slug):
|
||||||
|
|
||||||
|
|
||||||
@query.field("authorsAll")
|
@query.field("authorsAll")
|
||||||
def get_authors_all(_, _info, offset, limit):
|
def get_authors_all(_, _info):
|
||||||
return list(UserStorage.get_all_users())[offset : offset + limit] # type: ignore
|
authors = await UserStorage.get_all_users()
|
||||||
|
for author in authors:
|
||||||
|
author.stat = await get_author_stat(author.slug)
|
||||||
|
return authors
|
||||||
|
|
||||||
@query.field("topAuthors")
|
@query.field("topAuthors")
|
||||||
def get_top_authors(_, _info, offset, limit):
|
def get_top_authors(_, _info, offset, limit):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user