authors-all-fix-2
All checks were successful
deploy / deploy (push) Successful in 1m4s

This commit is contained in:
Untone 2023-12-18 20:38:31 +03:00
parent ef0f5168e1
commit 83fba058ab

View File

@ -19,11 +19,11 @@ async def _request_endpoint(query_name, body) -> Any:
return []
async def get_all_authors() -> List[ChatMember]:
async def get_all_authors(limit: int = 50, offset: int = 0) -> List[ChatMember]:
query_name = "load_authors_all"
gql = {
"query": "query { " + query_name + " { id slug pic name } }",
"query": "query { " + query_name + "(limit: " + str(limit) + ", offset: " + str(offset) +") { id slug pic name } }",
"variables": None,
}