Made compatible with 'Arrow' 0.14.5

pull/142/head
this-user 5 years ago committed by GitHub
parent f4a5b67ceb
commit 5af09bfd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,8 +30,8 @@ class Shredder(object):
if self._save_directory: if self._save_directory:
self._r.config.store_json_result = True self._r.config.store_json_result = True
self._recent_cutoff = arrow.now().replace(hours=-self._hours) self._recent_cutoff = arrow.now().shift(hours=-self._hours)
self._nuke_cutoff = arrow.now().replace(hours=-self._nuke_hours) self._nuke_cutoff = arrow.now().shift(hours=-self._nuke_hours)
if self._save_directory: if self._save_directory:
if not os.path.exists(self._save_directory): if not os.path.exists(self._save_directory):
os.makedirs(self._save_directory) os.makedirs(self._save_directory)

Loading…
Cancel
Save