master
Aevann1 2022-01-14 13:18:07 +02:00
parent 9268a9ce4c
commit 03f5fff40a
2 changed files with 3 additions and 5 deletions

View File

@ -207,8 +207,8 @@ def monthly(v):
emails = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
for u in g.db.query(User).filter(User.patron > 0).all():
if u.patron == 5 or u.email and u.email.lower() in emails or u.id == 1379:
for u in g.db.query(User).filter(User.patron > 0, User.patron != 5).all():
if u.email and u.email.lower() in emails or u.id == 1379:
if u.patron == 1: procoins = 2500
elif u.patron == 2: procoins = 5000
elif u.patron == 3: procoins = 10000
@ -216,8 +216,6 @@ def monthly(v):
elif u.patron == 5: procoins = 50000
else:
print(u.username)
u.patron = 0
g.db.add(u)
continue
u.procoins += procoins
g.db.add(u)

View File

@ -19,7 +19,7 @@
<tr>
<td style="font-weight: bold">{{loop.index}}</td>
<td style="font-weight: bold">{{k[0]}}</td>
<td><img class="marsey" loading="lazy" data-bs-toggle="tooltip" alt=":{{k[0]}}:" title=":{{k[0]}}:" delay="0" src="/static/assets/images/emojis/{{k[0]}}.webp?a=1002" ></td>
<td><img class="marsey" loading="lazy" data-bs-toggle="tooltip" alt=":{{k[0]}}:" title=":{{k[0]}}:" delay="0" src="/static/assets/images/emojis/{{k[0]}}.webp?a=1003" ></td>
<td style="font-weight: bold">{{k[2]}}</td>
<td>{% if k[1] in ('anton-d','unknown') %}{{k[1]}}{% else %}<a style="font-weight:bold;" href="/@{{k[1]}}"><img alt="@{{k[1]}}'s profile picture" loading="lazy" src="/@{{k[1]}}/pic" class="pp20">{{k[1]}}</a>{% endif %}</td>
</tr>