From be7bf90f0bf598716a440ab72ec1dc5224011436 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 19 Dec 2023 11:31:37 +0300 Subject: [PATCH] authors-cache-fix --- services/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core.py b/services/core.py index 0b9438b..1fadc98 100644 --- a/services/core.py +++ b/services/core.py @@ -37,10 +37,10 @@ async def get_all_authors() -> List[ChatMember]: authors = await _request_endpoint(query_name, gql) for a in authors: - authors_by_user[a.user] = a - authors_by_id[a.id] = a + authors_by_user[a["user"]] = a + authors_by_id[a["id"]] = a - return authors_by_id.values() + return list(authors_by_id.values()) async def get_my_followed() -> List[ChatMember]: