We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa26f22 commit 274dafeCopy full SHA for 274dafe
src/diff_risk_dashboard/cli.py
@@ -86,6 +86,7 @@ def _load_input(s: str) -> object:
86
raise SystemExit(f"✗ Not found and not JSON: {s}")
87
88
89
+
90
def _render_table(summary: Summary, console: Console) -> None:
91
if summary.total == 0:
92
console.print(
@@ -97,9 +98,8 @@ def _render_table(summary: Summary, console: Console) -> None:
97
98
)
99
return
100
- title_dot = (
101
- "🔴" if summary.risk_level == "red" else "🟡" if summary.risk_level == "yellow" else "🟢"
102
- )
+ risk_to_dot = {"red": "🔴", "yellow": "🟡", "green": "🟢"}
+ title_dot = risk_to_dot.get(summary.risk_level, "🟢")
103
104
table = Table(
105
title=f"Diff Risk Dashboard {title_dot} — Worst: {summary.worst}",
0 commit comments