From 69c37fae2784e67a44a4cc3209112cae7e5b4d13 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 14 Jan 2022 13:18:07 +0200 Subject: [PATCH] fd --- files/routes/admin.py | 6 ++---- files/templates/marseys.html | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 1bfba85e9..7046bae11 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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) diff --git a/files/templates/marseys.html b/files/templates/marseys.html index 79ee459f8..f9868c2d5 100644 --- a/files/templates/marseys.html +++ b/files/templates/marseys.html @@ -19,7 +19,7 @@ {{loop.index}} {{k[0]}} - :{{k[0]}}: + :{{k[0]}}: {{k[2]}} {% if k[1] in ('anton-d','unknown') %}{{k[1]}}{% else %}@{{k[1]}}'s profile picture{{k[1]}}{% endif %}