authors-cache-fix
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
Untone 2023-12-19 11:31:37 +03:00
parent c3a6ecd3ae
commit be7bf90f0b

View File

@ -37,10 +37,10 @@ async def get_all_authors() -> List[ChatMember]:
authors = await _request_endpoint(query_name, gql) authors = await _request_endpoint(query_name, gql)
for a in authors: for a in authors:
authors_by_user[a.user] = a authors_by_user[a["user"]] = a
authors_by_id[a.id] = 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]: async def get_my_followed() -> List[ChatMember]: