forked from rDrama/rDrama
1
0
Fork 0

/stats crashes workers - disable until someone else fixes it (not me)

master
Aevann1 2022-12-17 20:55:24 +02:00
parent 7bf3fcb520
commit 2256fecee6
1 changed files with 5 additions and 5 deletions

View File

@ -81,11 +81,11 @@ def sidebar(v:Optional[User]):
return render_template('sidebar.html', v=v) return render_template('sidebar.html', v=v)
@app.get("/stats") # @app.get("/stats")
@auth_required # @auth_required
def participation_stats(v:User): # def participation_stats(v:User):
if v.client: return stats_cached() # if v.client: return stats_cached()
return render_template("stats.html", v=v, title="Content Statistics", data=stats_cached()) # return render_template("stats.html", v=v, title="Content Statistics", data=stats_cached())
@cache.memoize(timeout=86400) @cache.memoize(timeout=86400)
def stats_cached(): def stats_cached():