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

This commit is contained in:
Untone 2023-12-18 03:09:07 +03:00
parent f19ff47e99
commit 5c0621dc9b

View File

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