From 3395415d7e0dc59981bdebf1d944fc6a51075b5d Mon Sep 17 00:00:00 2001 From: Matt Lee Date: Tue, 21 Jul 2015 16:44:22 -0700 Subject: [PATCH] Quarantine: Don't allow in r/random. Replaces the check against the allow_random property, which was a quick hack to deal with a specific subreddit. Also removes allow_random from the _defaults dict --- r2/r2/models/subreddit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r2/r2/models/subreddit.py b/r2/r2/models/subreddit.py index 3ec3105c8..8a9ce0098 100644 --- a/r2/r2/models/subreddit.py +++ b/r2/r2/models/subreddit.py @@ -274,7 +274,6 @@ class Subreddit(Thing, Printable, BaseSite): key_color='', hide_ads=False, ban_count=0, - allow_random=True, quarantine=False, ) @@ -998,7 +997,7 @@ class Subreddit(Thing, Printable, BaseSite): promo_sr_id = cls.get_promote_srid() for sr in srs: - if not sr.allow_random: + if sr.quarantine: continue if sr._id == promo_sr_id: