forked from rDrama/rDrama
fix previous commit (thx sneks)
parent
26c1267654
commit
c3109601f4
|
@ -62,7 +62,8 @@ def sub_inactive_purge_task():
|
||||||
send_repeatable_notification(x.user_id, f":marseyrave: /h/{x.sub} has been deleted for inactivity after one week without new posts. All posts in it have been moved to the main feed :marseyrave:")
|
send_repeatable_notification(x.user_id, f":marseyrave: /h/{x.sub} has been deleted for inactivity after one week without new posts. All posts in it have been moved to the main feed :marseyrave:")
|
||||||
|
|
||||||
for name in names:
|
for name in names:
|
||||||
first_mod_id = g.db.query(Mod.user_id).filter(sub=name).order_by(Mod.created_utc).first()[0]
|
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)
|
||||||
badge_grant(
|
badge_grant(
|
||||||
user=first_mod,
|
user=first_mod,
|
||||||
|
|
Loading…
Reference in New Issue