diff options
author | John Garland <johnnyg@gmail.com> | 2009-12-16 12:46:57 +0000 |
---|---|---|
committer | John Garland <johnnyg@gmail.com> | 2009-12-16 12:46:57 +0000 |
commit | 3c5d5aa16edbfb6638941cf88c330dcae2f36d9b (patch) | |
tree | 18698f64b9f243ee5f97e6610dd52f685ade7d4d | |
parent | 389e9cdbb098b885c6b46b86cf530d21bbe143e5 (diff) | |
download | deluge-3c5d5aa16edbfb6638941cf88c330dcae2f36d9b.tar.gz deluge-3c5d5aa16edbfb6638941cf88c330dcae2f36d9b.tar.bz2 deluge-3c5d5aa16edbfb6638941cf88c330dcae2f36d9b.zip |
Fix import on startup which got broken in previous commit.
-rw-r--r-- | deluge/plugins/blocklist/blocklist/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index 661f6ed24..f525b6059 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -36,7 +36,7 @@ import os import time -from datetime import datetime +from datetime import datetime, timedelta from wsgiref.handlers import format_date_time import shutil @@ -92,7 +92,7 @@ class Core(CorePluginBase): if self.config["last_update"]: now = datetime.now() last_update = datetime.fromtimestamp(self.config["last_update"]) - check_period = datetime.timedelta(days=self.config["check_after_days"]) + check_period = timedelta(days=self.config["check_after_days"]) if not self.config["last_update"] or last_update + check_period >= now: update_now = True else: |