From a1b295d0847210d1f40ec7611640c1cf7e6549f4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Aug 2022 14:41:08 +0200 Subject: [PATCH] remove default patron for WPD --- files/classes/user.py | 2 +- files/helpers/const.py | 3 --- files/templates/settings_profile.html | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index df00b5e9b..04c585fa7 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -47,7 +47,7 @@ class User(Base): profileurl = Column(String) bannerurl = Column(String) house = Column(String) - patron = Column(Integer, default=PATRON_DEFAULT) + patron = Column(Integer, default=0) patron_utc = Column(Integer, default=0) verified = Column(String) verifiedcolor = Column(String) diff --git a/files/helpers/const.py b/files/helpers/const.py index 22a8c8f97..1ee49d656 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1037,9 +1037,6 @@ MASTER_KEY = environ.get("MASTER_KEY") TRUSTED_SERVER_PSK = environ.get("TRUSTED_SERVER_PSK", None) FP = environ.get("FP") -if SITE_NAME == 'WPD': PATRON_DEFAULT = 7 -else: PATRON_DEFAULT = 0 - tiers={ "(Paypig)": 1, "(Renthog)": 2, diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 00a065496..471416294 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -677,7 +677,7 @@ {%- endif %} - {% if v.patron or v.id == MOOSE_ID %} + {% if v.sig or v.patron %}