From 2256fecee605ebcf9e6e832146a8dae22f3f711f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 17 Dec 2022 20:55:24 +0200 Subject: [PATCH] /stats crashes workers - disable until someone else fixes it (not me) --- files/routes/static.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 056826d53..ddacf8696 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -81,11 +81,11 @@ def sidebar(v:Optional[User]): return render_template('sidebar.html', v=v) -@app.get("/stats") -@auth_required -def participation_stats(v:User): - if v.client: return stats_cached() - return render_template("stats.html", v=v, title="Content Statistics", data=stats_cached()) +# @app.get("/stats") +# @auth_required +# def participation_stats(v:User): +# if v.client: return stats_cached() +# return render_template("stats.html", v=v, title="Content Statistics", data=stats_cached()) @cache.memoize(timeout=86400) def stats_cached():