summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garland <johnnyg@gmail.com>2009-12-17 23:08:55 +0000
committerJohn Garland <johnnyg@gmail.com>2009-12-17 23:08:55 +0000
commitc932de847061d37ce63df71c312a39feb1d9086e (patch)
tree56f78e8e00741e2cf69eadd765db16c85e84a870
parent0663da4424e53d65e83f436a33696cbb23cf22ee (diff)
downloaddeluge-c932de847061d37ce63df71c312a39feb1d9086e.tar.gz
deluge-c932de847061d37ce63df71c312a39feb1d9086e.tar.bz2
deluge-c932de847061d37ce63df71c312a39feb1d9086e.zip
Remove redundant variable.
-rw-r--r--deluge/plugins/blocklist/blocklist/core.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py
index e87cb55f0..248288d73 100644
--- a/deluge/plugins/blocklist/blocklist/core.py
+++ b/deluge/plugins/blocklist/blocklist/core.py
@@ -93,10 +93,9 @@ class Core(CorePluginBase):
update_now = False
if self.config["load_on_start"]:
if self.config["last_update"]:
- now = datetime.now()
last_update = datetime.fromtimestamp(self.config["last_update"])
check_period = timedelta(days=self.config["check_after_days"])
- if not self.config["last_update"] or last_update + check_period < now:
+ if not self.config["last_update"] or last_update + check_period < datetime.now():
update_now = True
else:
self.use_cache = True