From 83fba058ab6678ac3ed2436b196a80f4e7c7b9fb Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 18 Dec 2023 20:38:31 +0300 Subject: [PATCH] authors-all-fix-2 --- services/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core.py b/services/core.py index f9771dd..f45ae31 100644 --- a/services/core.py +++ b/services/core.py @@ -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, }