forked from MarseyWorld/MarseyWorld
parent
2fc5552573
commit
6c8faf6de7
|
@ -79,6 +79,7 @@ def sidebar(v):
|
||||||
@app.get("/stats")
|
@app.get("/stats")
|
||||||
@auth_required
|
@auth_required
|
||||||
def participation_stats(v):
|
def participation_stats(v):
|
||||||
|
if request.headers.get("Authorization"): 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)
|
||||||
|
|
Loading…
Reference in New Issue