some-fixes
All checks were successful
deploy / deploy (push) Successful in 1m10s

This commit is contained in:
Untone 2023-11-24 05:20:16 +03:00
parent ab4204db37
commit fd95d1ee11
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ type ChatMember {
id: Int!
slug: String!
name: String!
userpic: String
pic: String
last_seen: Int!
online: Boolean
# invitedAt: DateTime

View File

@ -5,6 +5,6 @@ class ChatMember(TypedDict):
id: int
slug: str
name: str
userpic: Optional[str]
pic: Optional[str]
last_seen: int
online: Optional[bool]

View File

@ -10,7 +10,7 @@ async def get_all_authors() -> List[ChatMember]:
query_name = "authorsAll"
query_type = "query"
operation = "AuthorsAll"
query_fields = "id slug userpic name"
query_fields = "id slug pic name"
gql = {
"query": query_type + " " + operation + " { " + query_name + " { " + query_fields + " } " + " }",
@ -38,7 +38,7 @@ async def get_my_followings() -> List[ChatMember]:
query_name = "loadMySubscriptions"
query_type = "query"
operation = "LoadMySubscriptions"
query_fields = "id slug userpic name"
query_fields = "id slug pic name"
gql = {
"query": query_type + " " + operation + " { " + query_name + " { authors {" + query_fields + "} } " + " }",