get-author-fix-8
All checks were successful
deploy / deploy (push) Successful in 1m17s

This commit is contained in:
Untone 2023-12-18 03:04:25 +03:00
parent 2db82eddfd
commit f19ff47e99

View File

@ -63,13 +63,21 @@ async def get_my_followed() -> List[ChatMember]:
async def get_author(user: str = ""): async def get_author(user: str = ""):
query_name = "get_author_id(user: $user)" query_name = "get_author_id"
query_type = "query" query_type = "query"
operation = "GetAuthorId($user: String!)" operation = "GetAuthorId"
query_fields = "id slug pic name" query_fields = "id slug pic name"
gql = { gql = {
"query": query_type + " " + operation + " { " + query_name + " { " + query_fields + "} " + " }", "query": query_type
+ "(user: $user) "
+ operation
+ "($user: String!) { "
+ query_name
+ " { "
+ query_fields
+ "} "
+ " }",
"operationName": operation, "operationName": operation,
"variables": {"user": user}, "variables": {"user": user},
} }