This commit is contained in:
parent
65eaa7b6cb
commit
c3333c41a7
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user