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 "—",