dict-fix-2

This commit is contained in:
Untone 2023-10-13 16:39:13 +03:00
parent 6dbd417a3c
commit ac80b45b51

View File

@ -68,7 +68,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
a = await get_author(member_id)
print(f"[resolvers.load] author with id={member_id}: {a}")
if a:
a["online"] = a.id in members_online
a["online"] = a.get("id") in members_online
c["members"].append(a)
chats.append(c)
return {"chats": chats, "error": None}