Remove redundant variable.

This commit is contained in:
John Garland 2009-12-17 23:08:55 +00:00
parent 0cc00ba5df
commit 62a336b7d8
1 changed files with 1 additions and 2 deletions

View File

@ -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