diff --git a/files/routes/static.py b/files/routes/static.py index 327e6e6c9..678dbb661 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -142,7 +142,7 @@ def participation_stats(v): stats = statshelper.stats() cache.set('stats', stats, timeout=172800) if v.client: return stats - return render_template("stats.html", v=v, title="Statistics", data=stats) + return render_template("stats.html", v=v, title="Statistics", stats=stats) @app.get("/chart") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) diff --git a/files/templates/stats.html b/files/templates/stats.html index 4e65fc13a..783422adc 100644 --- a/files/templates/stats.html +++ b/files/templates/stats.html @@ -19,10 +19,10 @@ Value - {% for key, value in data.items() %} + {% for key, value in stats.items() %} {{key}} - {% if key == 'time' -%} + {% if key == 'Time these stats were collected' -%} {% else -%} {{value}}