forked from MarseyWorld/MarseyWorld
make countryclub and masterbaiters immune to deletion
parent
2086b64c22
commit
8329287150
|
@ -56,7 +56,7 @@ def _sub_inactive_purge_task():
|
|||
.filter(Submission.sub != None, Submission.created_utc > one_week_ago,
|
||||
Submission.private == False, Submission.is_banned == False,
|
||||
Submission.deleted_utc == 0).all()]
|
||||
active_holes.append('changelog') # system hole immune from deletion
|
||||
active_holes.extend(['changelog','countryclub','masterbaiters']) # holes immune from deletion
|
||||
|
||||
dead_holes = g.db.query(Sub).filter(Sub.name.notin_(active_holes)).all()
|
||||
names = [x.name for x in dead_holes]
|
||||
|
|
Loading…
Reference in New Issue