From b4210d74b9d6e5c2d2e4e7aa28f33ed1933d0088 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 Jul 2026 12:46:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20LD=E6=9D=BF=E7=BC=96=E5=8F=B7=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E7=AE=80=E5=8C=96=E4=B8=BA=20LD0=20LD1=20(=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=20Rack/Cluster=20=E5=89=8D=E7=BC=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mailer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailer.py b/mailer.py index 4352300..6584646 100644 --- a/mailer.py +++ b/mailer.py @@ -323,11 +323,11 @@ def collect_report_data() -> dict: # 转为列表并排序 (按 LD 数降序) for owner, info in user_boards.items(): - boards_sorted = sorted(info["boards"], key=lambda x: (x[0], x[1], x[2])) + boards_sorted = sorted(info["boards"], key=lambda x: x[2]) user_board_agg.append({ "user": owner, "ld_count": len(boards_sorted), - "boards": ", ".join(f"R{b[0]}C{b[1]}LD{b[2]}" for b in boards_sorted), + "boards": ", ".join(f"LD{b[2]}" for b in boards_sorted), "racks": ", ".join(str(r) for r in sorted(info["racks"])) if info["racks"] else "—", "pods": ", ".join(sorted(info["pods"])) if info["pods"] else "—", "designs": "; ".join(sorted(info["designs"])) if info["designs"] else "—",