Fix hole neglecter logic & missing imports.

Amends 69903bb94b and c3109601f4 after local testing.
remotes/1693045480750635534/spooky-22
Snakes 2022-08-24 16:38:44 -04:00
parent c3109601f4
commit f0becbd26e
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 3 additions and 1 deletions

View File

@ -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,