user-field-fix
All checks were successful
deploy / deploy (push) Successful in 1m2s

This commit is contained in:
Untone 2023-12-19 11:51:36 +03:00
parent 65eaa7b6cb
commit c3333c41a7

View File

@ -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,
}