From fc0af2d0d80e007ef79646a5726818a86db512f5 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 14 Nov 2023 18:10:06 +0300 Subject: [PATCH] get-author-by-id-fix-2 --- services/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/core.py b/services/core.py index 57a6f2c..bb8d4de 100644 --- a/services/core.py +++ b/services/core.py @@ -18,7 +18,9 @@ async def get_author(author_id): gql = { "query": query_type + " " + operation + " { " + query_name + " { " + query_fields + " } " + " }", "operationName": operation, - "variables": None, + "variables": { + "author_id": author_id + }, } async with AsyncClient() as client: try: