delete code irrelevant now
parent
16ec48c116
commit
03a82a0d4f
|
@ -350,9 +350,8 @@ def award_thing(v, thing_type, id):
|
|||
else: author.progressivestack = int(time.time()) + 21600
|
||||
badge_grant(user=author, badge_id=94)
|
||||
elif kind == "benefactor":
|
||||
if author.patron and not author.patron_utc:
|
||||
abort(409, f"{safe_username} is already a {patron.lower()}!")
|
||||
author.patron = 1
|
||||
if not author.patron:
|
||||
author.patron = 1
|
||||
if author.patron_utc: author.patron_utc += 2629746
|
||||
else: author.patron_utc = int(time.time()) + 2629746
|
||||
author.pay_account('marseybux', 2500)
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
<td>{% include "user_in_table.html" %}</td>
|
||||
<td>
|
||||
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="/i/{{SITE_NAME}}/badges/2{{user.patron}}.webp?v=1">
|
||||
{% if user.patron_utc %}
|
||||
<i class="{{benefactor_def['icon']}} {{benefactor_def['color']}} px-1"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue