delete code irrelevant now

pull/134/head
Aevann 2023-02-23 15:04:33 +02:00
parent 16ec48c116
commit 03a82a0d4f
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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 %}