dict-fix
This commit is contained in:
parent
806fb5f6f7
commit
6dbd417a3c
|
@ -68,16 +68,8 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
|
||||||
a = await get_author(member_id)
|
a = await get_author(member_id)
|
||||||
print(f"[resolvers.load] author with id={member_id}: {a}")
|
print(f"[resolvers.load] author with id={member_id}: {a}")
|
||||||
if a:
|
if a:
|
||||||
c["members"].append(
|
a["online"] = a.id in members_online
|
||||||
{
|
c["members"].append(a)
|
||||||
"id": a.id,
|
|
||||||
"slug": a.slug,
|
|
||||||
"userpic": a.userpic,
|
|
||||||
"name": a.name,
|
|
||||||
"lastSeen": a.lastSeen,
|
|
||||||
"online": a.id in members_online,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
chats.append(c)
|
chats.append(c)
|
||||||
return {"chats": chats, "error": None}
|
return {"chats": chats, "error": None}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user