forked from MarseyWorld/MarseyWorld
Fix hole neglecter logic & missing imports.
Amendsmaster69903bb94b
andc3109601f4
after local testing.
parent
c3109601f4
commit
f0becbd26e
|
@ -2,6 +2,8 @@ from files.cli import g, app, db_session
|
||||||
import click
|
import click
|
||||||
from files.helpers.const import *
|
from files.helpers.const import *
|
||||||
from files.helpers.alerts import send_repeatable_notification
|
from files.helpers.alerts import send_repeatable_notification
|
||||||
|
from files.helpers.get import *
|
||||||
|
from files.helpers.actions import *
|
||||||
from files.classes import *
|
from files.classes import *
|
||||||
|
|
||||||
import files.helpers.lottery as lottery
|
import files.helpers.lottery as lottery
|
||||||
|
@ -64,7 +66,7 @@ def sub_inactive_purge_task():
|
||||||
for name in names:
|
for name in names:
|
||||||
first_mod_id = g.db.query(Mod.user_id).filter_by(sub=name).order_by(Mod.created_utc).first()
|
first_mod_id = g.db.query(Mod.user_id).filter_by(sub=name).order_by(Mod.created_utc).first()
|
||||||
if first_mod_id:
|
if first_mod_id:
|
||||||
first_mod = get_account(first_mod_id)
|
first_mod = get_account(first_mod_id[0])
|
||||||
badge_grant(
|
badge_grant(
|
||||||
user=first_mod,
|
user=first_mod,
|
||||||
badge_id=156,
|
badge_id=156,
|
||||||
|
|
Loading…
Reference in New Issue