master
Aevann1 2022-05-09 14:15:23 +02:00
parent c0461f4554
commit 45da8f0f35
2 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,9 @@ defaulttheme = environ.get("DEFAULT_THEME", "midnight").strip()
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
cardview = bool(int(environ.get("CARD_VIEW", 1)))
if SITE_NAME in ('Cringetopia', 'WPD'): patron_default = 7
else: patron_default = 0
class User(Base):
__tablename__ = "users"
@ -48,7 +51,7 @@ class User(Base):
profileurl = Column(String)
bannerurl = Column(String)
house = Column(String)
patron = Column(Integer, default=0)
patron = Column(Integer, default=patron_default)
patron_utc = Column(Integer, default=0)
verified = Column(String)
verifiedcolor = Column(String)

View File

@ -25,7 +25,7 @@
<input autocomplete="off" id="giveaward" class="awardbtn btn btn-primary mt-3" style="float:right" type="submit" value="Give Award" disabled>
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
<button id="buy1" class="awardbtn btn btn-primary mt-3 mx-3" type="button" disabled style="float:right" onclick="buy(true)">Buy with marseybux</button>
{% end if %}
{% endif %}
<button id="buy2" class="awardbtn btn btn-primary mt-3" type="button" disabled style="float:right" onclick="buy()">Buy</button>
<pre>
</pre>