From 62a336b7d8bd5878c2b855b1716523c5c41afd25 Mon Sep 17 00:00:00 2001 From: John Garland Date: Thu, 17 Dec 2009 23:08:55 +0000 Subject: [PATCH] Remove redundant variable. --- deluge/plugins/blocklist/blocklist/core.py | 3 +-- 1 file changed, 1 insertion(+), 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