fix-get-author
This commit is contained in:
parent
d8c3f80451
commit
ca607a9b9e
|
@ -15,7 +15,7 @@ async def get_author(author_id):
|
|||
}
|
||||
try:
|
||||
async with AsyncClient() as client:
|
||||
response = await client.post(API_BASE, headers=headers, data=gql)
|
||||
response = await client.post(API_BASE, headers=headers, data=json.dumps(gql))
|
||||
print(f"[services.core] get_author response: {response.status_code} {response.text}")
|
||||
if response.status_code != 200:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user