Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def _render_leaderboard() -> str:
|
|
| 196 |
if side == "best":
|
| 197 |
color = "#1A5C34" if pct < 40 else "#27AE60" if pct < 70 else "#E67E22"
|
| 198 |
else:
|
| 199 |
-
color = "#C0392B" if pct >= 70 else "#E67E22" if pct >=
|
| 200 |
medal = ["🥇","🥈","🥉"] [rank] if rank < 3 else f"{rank+1}."
|
| 201 |
full = e["text"].replace("<", "<").replace(">", ">")
|
| 202 |
preview = full[:120] + ("..." if len(full) > 120 else "")
|
|
|
|
| 196 |
if side == "best":
|
| 197 |
color = "#1A5C34" if pct < 40 else "#27AE60" if pct < 70 else "#E67E22"
|
| 198 |
else:
|
| 199 |
+
color = "#C0392B" if pct >= 70 else "#E67E22" if pct >= 50 else "#D4AC0D" if pct >= 30 else "#27AE60"
|
| 200 |
medal = ["🥇","🥈","🥉"] [rank] if rank < 3 else f"{rank+1}."
|
| 201 |
full = e["text"].replace("<", "<").replace(">", ">")
|
| 202 |
preview = full[:120] + ("..." if len(full) > 120 else "")
|