style: 去掉引用语法, 明细改普通行(企微连续引用行渲染粘连)

This commit is contained in:
yeuimu
2026-09-07 10:32:17 +00:00
parent 669f1a717f
commit 34675f16a8
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -380,7 +380,7 @@ def device_check(alarm_threshold: int = 80) -> dict:
for m in mounts:
g = growth.get(label_map.get(m["label"], ""))
growth_txt = f" · 增长最快 {g['dir']} {_fmt_growth(g['growth'])}" if g and g.get("dir") else ""
lines.append(f"> {m['label']} {_mark(m['pct'], threshold)} · 已用 {_gb(m['used'])} · 剩 {_gb(m['free'])}{growth_txt}")
lines.append(f"{m['label']} {_mark(m['pct'], threshold)} · 已用 {_gb(m['used'])} · 剩 {_gb(m['free'])}{growth_txt}")
# ---- GPU ----
gpu_stats = agg.get("gpus") or []
@@ -427,15 +427,15 @@ def device_check(alarm_threshold: int = 80) -> dict:
docker_txt += " · PG " + ("正常" if svc.get("pg") else '<font color="warning">异常</font>')
lines.append(f"**Docker** {docker_txt}")
for it in issues[:8]:
lines.append(f"> {it['name']}:{it['issue']}")
lines.append(f"{it['name']}:{it['issue']}")
failures = checks.get("prefectFailures") or []
if failures:
lines.append(f'**任务** 失败 <font color="warning">{len(failures)} 次</font>(24h)')
for f in failures[:5]:
lines.append(f"> {f['flow']}:{f['name']} {f['state']} {(f.get('start') or '')[5:]}")
lines.append(f"{f['flow']}:{f['name']} {f['state']} {(f.get('start') or '')[5:]}")
if len(failures) > 5:
lines.append(f"> …共 {len(failures)} 次")
lines.append(f"…共 {len(failures)} 次")
else:
lines.append("**任务** 失败 0 次(24h)")