From 29750ced4246256194f42f8f722d972aae71ee97 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 23 Jan 2024 16:04:30 +0200 Subject: [PATCH] fix prev commit --- files/routes/static.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index bd5480653..327e6e6c9 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -139,7 +139,8 @@ def sidebar(v): def participation_stats(v): stats = cache.get('stats') if not stats: - cache.set('stats', stats.stats(), timeout=172800) + 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)