From 8225e69cb001358986d5bf23f775b1cf93a77b1f Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 1 Aug 2023 10:44:35 +0300 Subject: [PATCH] cachebust badges --- files/classes/badges.py | 2 +- files/templates/admin/patrons.html | 2 +- files/templates/comments.html | 2 +- files/templates/userpage/banner.html | 4 ++-- files/templates/util/macros.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/classes/badges.py b/files/classes/badges.py index 80e8f18f9..da02b8eb6 100644 --- a/files/classes/badges.py +++ b/files/classes/badges.py @@ -26,7 +26,7 @@ class BadgeDef(Base): @property @lazy def path(self): - return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?b=10" + return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?b=11" class Badge(Base): diff --git a/files/templates/admin/patrons.html b/files/templates/admin/patrons.html index 66ae50825..19400318b 100644 --- a/files/templates/admin/patrons.html +++ b/files/templates/admin/patrons.html @@ -17,7 +17,7 @@ {% include "user_in_table.html" %} {% if user.patron > 1 %} - 2{{user.patron}} + 2{{user.patron}} {% endif %} ${{user.lifetimedonated}} diff --git a/files/templates/comments.html b/files/templates/comments.html index f26c3ebc4..42576082b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -159,7 +159,7 @@ 👻 {% else %} {% if FEATURES['PATRON_ICONS'] and c.author.patron > 1 %} - {{c.author.patron_tooltip}} + {{c.author.patron_tooltip}} {% endif %} {% if FEATURES['HOUSES'] and c.author.house %} diff --git a/files/templates/userpage/banner.html b/files/templates/userpage/banner.html index d229d9011..6c1e9a4c1 100644 --- a/files/templates/userpage/banner.html +++ b/files/templates/userpage/banner.html @@ -41,7 +41,7 @@ {% endif %} {% if FEATURES['PATRON_ICONS'] and u.patron > 1 %} - {{u.patron_tooltip}} + {{u.patron_tooltip}} {% endif %} {% if FEATURES['HOUSES'] and u.house %} @@ -313,7 +313,7 @@ {% endif %} {% if FEATURES['PATRON_ICONS'] and u.patron > 1 %} - {{u.patron_tooltip}} + {{u.patron_tooltip}} {% endif %} {% if FEATURES['HOUSES'] and u.house %} diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 8bd20ca9a..d2a23c4f8 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -60,7 +60,7 @@ 👻 {% else %} {% if FEATURES['PATRON_ICONS'] and p.author.patron > 1 %} - {{p.author.patron_tooltip}} + {{p.author.patron_tooltip}} {% endif %} {% if FEATURES['HOUSES'] and p.author.house %}