From 148ef6e417279112f075d99a6f42a979686d0619 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 13:04:50 +0800 Subject: [PATCH] auto-sync: 2026-05-18 13:04:50 --- src/api/mail_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/mail_routes.py b/src/api/mail_routes.py index 34d67f3..dddc62b 100644 --- a/src/api/mail_routes.py +++ b/src/api/mail_routes.py @@ -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}