dict-fix3
This commit is contained in:
parent
eab0e4cc48
commit
3b5836a4f2
|
@ -56,6 +56,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
|
|||
|
||||
for cid in cids:
|
||||
c = await redis.execute("GET", f"chats/{cid}")
|
||||
print(f"got chat {c}")
|
||||
if c:
|
||||
c = json.loads(c)
|
||||
c["messages"] = await load_messages(cid, 5, 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user