From 05cb5a73fd164434a7638ebaeae11eeaeb7efd9d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 14 Jan 2022 13:26:25 +0200 Subject: [PATCH] bbb --- 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 6562741f4..7b3085852 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -207,7 +207,7 @@ 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, User.patron != 5, User.admin_level = 0).all(): + for u in g.db.query(User).filter(User.patron > 0, User.patron != 5, User.admin_level == 0).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