From dbe0bf076e4ec8c8ab884682302bc807dadc9733 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 2 May 2022 20:50:43 +0200 Subject: [PATCH] tre --- files/routes/static.py | 8 +++----- files/templates/badges.html | 8 +++++--- files/templates/sub/subs.html | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 8b6097ef43..84fc093d24 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 8b2802abba..b7e72b1e17 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 d6aa5f650c..ea14b26bb6 100644 --- a/files/templates/sub/subs.html +++ b/files/templates/sub/subs.html @@ -15,7 +15,7 @@ - +
# Name Image Description#Rarity#Rarity
# Name PostsBlockersBlockers