From c3333c41a76a8ac9f7a8538bb21637e62ee4fbd6 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 19 Dec 2023 11:51:36 +0300 Subject: [PATCH] user-field-fix --- services/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core.py b/services/core.py index 77b7153..9a80d7c 100644 --- a/services/core.py +++ b/services/core.py @@ -12,7 +12,7 @@ authors_by_id = {} async def _request_endpoint(query_name, body) -> Any: async with ClientSession() as session: async with session.post(API_BASE, headers=headers, json=body) as response: - print(f"[services.core] {query_name} response: <{response.status}> {(await response.text())[:15]}..") + print(f"[services.core] {query_name} response: <{response.status}> {(await response.text())[:65]}..") if response.status == 200: r = await response.json() if r: @@ -29,7 +29,7 @@ async def get_all_authors() -> List[ChatMember]: return authors_by_user["authors"] gql = { - "query": "query { " + query_name + "{ id slug pic name } }", + "query": "query { " + query_name + "{ id slug pic name user } }", "variables": None, }