diff --git a/files/routes/static.py b/files/routes/static.py index 8b6097ef4..84fc093d2 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -66,13 +66,10 @@ def sidebar(v): @app.get("/stats") @auth_required +@cache.memoize(timeout=86400) def participation_stats(v): - return render_template("admin/content_stats.html", v=v, title="Content Statistics", data=stats(site=SITE)) - -@cache.memoize(timeout=86400) -def stats(site=None): day = int(time.time()) - 86400 week = int(time.time()) - 604800 @@ -203,7 +200,8 @@ def stats(site=None): g.db.commit() - return stats + return render_template("admin/content_stats.html", v=v, title="Content Statistics", data=stats) + @app.get("/chart") def chart(): diff --git a/files/templates/badges.html b/files/templates/badges.html index 8b2802abb..b7e72b1e1 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -1,5 +1,6 @@ {% extends "default.html" %} {% block content %} +
 
 
@@ -11,15 +12,16 @@
 
 
 
-
+
+
- - + + {% for badge in badges %} diff --git a/files/templates/sub/subs.html b/files/templates/sub/subs.html index d6aa5f650..ea14b26bb 100644 --- a/files/templates/sub/subs.html +++ b/files/templates/sub/subs.html @@ -15,7 +15,7 @@ - +
# Name Image Description#Rarity#Rarity
# Name PostsBlockersBlockers