From 6201a79df0eaf188735dcf39bee363e77e87f0b7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 2 Sep 2022 02:48:15 +0200 Subject: [PATCH] fix gumroad for humbdolt --- files/helpers/const.py | 4 ++-- files/helpers/cron.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 40462d5a4..d7739482f 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -197,9 +197,9 @@ BASEDBOT_ID = 0 BBBB_ID = 0 SCHIZO_ID = 0 -A_ID = 0 KIPPY_ID = 0 PIZZASHILL_ID = 0 +GUMROAD_MESSY = () PIZZA_VOTERS = () IDIO_ID = 0 CARP_ID = 0 @@ -254,9 +254,9 @@ if SITE in {'rdrama.net', 'devrama.xyz'}: BBBB_ID = 12125 SCHIZO_ID = 8494 - A_ID = 1230 KIPPY_ID = 7150 PIZZASHILL_ID = 2424 + GUMROAD_MESSY = (1230,1379) PIZZA_VOTERS = (747,1963,9712) IDIO_ID = 30 CARP_ID = 995 diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 29d81b325..4a73500e1 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -106,7 +106,7 @@ def give_monthly_marseybux_task(): for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all(): g.db.add(u) - if u.admin_level or u.id == A_ID or (u.email and u.email.lower() in emails): + if u.admin_level or u.id in GUMROAD_MESSY or (u.email and u.email.lower() in emails): procoins = procoins_li[u.patron] u.procoins += procoins send_repeatable_notification(u.id, f"@AutoJanny has given you {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).")