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]: