From f0becbd26e9c19a038e4f1252dcfe9de4685b67a Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 24 Aug 2022 16:38:44 -0400 Subject: [PATCH] Fix hole neglecter logic & missing imports. Amends 69903bb94b05 and c3109601f482 after local testing. --- files/helpers/cron.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index e7f0fce0c..f52aadbce 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -2,6 +2,8 @@ from files.cli import g, app, db_session import click from files.helpers.const import * from files.helpers.alerts import send_repeatable_notification +from files.helpers.get import * +from files.helpers.actions import * from files.classes import * import files.helpers.lottery as lottery @@ -64,7 +66,7 @@ def sub_inactive_purge_task(): for name in names: first_mod_id = g.db.query(Mod.user_id).filter_by(sub=name).order_by(Mod.created_utc).first() if first_mod_id: - first_mod = get_account(first_mod_id) + first_mod = get_account(first_mod_id[0]) badge_grant( user=first_mod, badge_id=156,