fix: LD板编号格式简化为 LD0 LD1 (去除 Rack/Cluster 前缀)
This commit is contained in:
@@ -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 "—",
|
||||
|
||||
Reference in New Issue
Block a user