From 8627bad9183c6ba6526ccbba68766374029dc9c4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 1 Aug 2023 09:54:41 +0300 Subject: [PATCH] boost /h/highrollerclub and exempt it from deletion --- files/helpers/config/const.py | 1 + files/helpers/cron.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index af9c6a165..0db920b1a 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -256,6 +256,7 @@ if SITE_NAME == 'rDrama': 'museumofrdrama', 'space', 'femaledatingstrategy', + 'highrollerclub', } REDDIT_NOTIFS_SITE.add('marsey') diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 7bf13d937..b05f88685 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -75,7 +75,7 @@ def _sub_inactive_purge_task(): .filter(Post.sub != None, Post.created_utc > one_week_ago, Post.private == False, Post.is_banned == False, Post.deleted_utc == 0).all()] - active_holes.extend(['changelog','countryclub','museumofrdrama']) # holes immune from deletion + active_holes.extend(['changelog','countryclub','museumofrdrama','highrollerclub']) # 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]