From bc12edb5b90c1a2a81e94ba933f3c298f317db61 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 1 Jul 2022 22:22:10 +0200 Subject: [PATCH] add exception for chadmins --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index ddf0c145b..c59a96c1c 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -32,7 +32,7 @@ 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).all(): + for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0, User.admin_level == 0).all(): g.db.add(u) if u.id in (DAD_ID, A_ID) or u.email and u.email.lower() in emails: procoins = procoins_li[u.patron]