diff --git a/files/classes/user.py b/files/classes/user.py index cbe6e916f..caac6bb3a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -449,6 +449,12 @@ class User(Base): return discount + @property + @lazy + def formatted_discount(self): + discount = 100 - int(self.discount * 100) + return f'%{discount}' + @property @lazy def can_view_offsitementions(self): diff --git a/files/templates/shop.html b/files/templates/shop.html index 496abed73..91add8290 100644 --- a/files/templates/shop.html +++ b/files/templates/shop.html @@ -29,6 +29,7 @@ {% if FEATURES['MARSEYBUX'] %}
Lifetime Donated: ${{u.lifetime_donated}} (Shown to you only)
{% endif %} +Total award discount: {{u.formatted_discount}}
+ {% if u.is_private %}User has private mode enabled
{% endif %} @@ -504,6 +506,8 @@Lifetime Donated: ${{u.lifetime_donated}} (Shown to you only)
{% endif %} +Total award discount: {{u.formatted_discount}}
+ {% if u.is_private %}User has private mode enabled
{% endif %}