From ac8d91be208c469d2d22ebb17e1e8cc9671d1b14 Mon Sep 17 00:00:00 2001 From: crypticgeek Date: Wed, 11 Jan 2017 08:15:29 +0000 Subject: [PATCH] fix nuke_cutoff not being respected --- shreddit/shredder.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shreddit/shredder.py b/shreddit/shredder.py index 3c0891e..b4940af 100644 --- a/shreddit/shredder.py +++ b/shreddit/shredder.py @@ -151,14 +151,14 @@ class Shredder(object): self._logger.debug("Deleting due to blacklist") count_removed += 1 self._remove(item) - elif self._check_whitelist(item): - self._logger.debug("Skipping due to: whitelisted") - continue - if created <= self._nuke_cutoff: + elif created <= self._nuke_cutoff: self._logger.debug("Item occurs prior to nuke cutoff") count_removed += 1 self._remove(item) - elif created > self._recent_cutoff: + elif self._check_whitelist(item): + self._logger.debug("Skipping due to: whitelisted") + continue + elif created > self._recent_cutoff: self._logger.debug("Skipping due to: too recent") continue else: