From 7cd1e4bf8f36d0f2e595c5c934fa48d6ddd65eea Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 7 Jul 2022 07:14:39 +0200 Subject: [PATCH] give chadmins marseybux --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 402e5f305..a455245e5 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -32,9 +32,9 @@ def give_monthly_marseybux_task(): 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, User.patron_utc == 0, User.admin_level == 0).all(): + for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all(): g.db.add(u) - if u.id in (DAD_ID, A_ID) or u.email and u.email.lower() in emails: + if u.admin_level or u.id == A_ID or (u.email and u.email.lower() in emails): procoins = procoins_li[u.patron] u.procoins += procoins send_repeatable_notification(u.id, f"@Snappy has given you {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).")