auto-sync: 2026-05-18 13:04:50
This commit is contained in:
@@ -214,7 +214,7 @@ async def mail_summary():
|
||||
meta = _mail_meta(t)
|
||||
if not meta.get("is_read", False):
|
||||
unread += 1
|
||||
t = meta.get("type", "inform")
|
||||
by_type[t] = by_type.get(t, 0) + 1
|
||||
mtype = meta.get("type", "inform")
|
||||
by_type[mtype] = by_type.get(mtype, 0) + 1
|
||||
|
||||
return {"total": total, "unread": unread, "by_type": by_type}
|
||||
|
||||
Reference in New Issue
Block a user