From 83292871501ae5599a5ba87b4acedc701f4f1bd4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Feb 2023 06:30:21 +0200 Subject: [PATCH] make countryclub and masterbaiters immune to deletion --- files/helpers/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 989759c51f..fed1f3874b 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -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]