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! id: Int!
slug: String! slug: String!
name: String! name: String!
userpic: String pic: String
last_seen: Int! last_seen: Int!
online: Boolean online: Boolean
# invitedAt: DateTime # invitedAt: DateTime

View File

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

View File

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