Merge pull request #88 from crypticgeek/nukecutoff

fix nuke_cutoff not being respected
pull/91/head
Scott Hand 8 years ago committed by GitHub
commit 543487ab23

@ -151,13 +151,13 @@ class Shredder(object):
self._logger.debug("Deleting due to blacklist") self._logger.debug("Deleting due to blacklist")
count_removed += 1 count_removed += 1
self._remove(item) self._remove(item)
elif self._check_whitelist(item): elif created <= self._nuke_cutoff:
self._logger.debug("Skipping due to: whitelisted")
continue
if created <= self._nuke_cutoff:
self._logger.debug("Item occurs prior to nuke cutoff") self._logger.debug("Item occurs prior to nuke cutoff")
count_removed += 1 count_removed += 1
self._remove(item) self._remove(item)
elif self._check_whitelist(item):
self._logger.debug("Skipping due to: whitelisted")
continue
elif created > self._recent_cutoff: elif created > self._recent_cutoff:
self._logger.debug("Skipping due to: too recent") self._logger.debug("Skipping due to: too recent")
continue continue

Loading…
Cancel
Save