make countryclub and masterbaiters immune to deletion

master
Aevann 2023-02-06 06:30:21 +02:00
parent 2086b64c22
commit 8329287150
1 changed files with 1 additions and 1 deletions

View File

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