mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Remove redundant variable.
This commit is contained in:
parent
0663da4424
commit
c932de8470
1 changed files with 1 additions and 2 deletions
|
@ -93,10 +93,9 @@ class Core(CorePluginBase):
|
||||||
update_now = False
|
update_now = False
|
||||||
if self.config["load_on_start"]:
|
if self.config["load_on_start"]:
|
||||||
if self.config["last_update"]:
|
if self.config["last_update"]:
|
||||||
now = datetime.now()
|
|
||||||
last_update = datetime.fromtimestamp(self.config["last_update"])
|
last_update = datetime.fromtimestamp(self.config["last_update"])
|
||||||
check_period = 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:
|
if not self.config["last_update"] or last_update + check_period < datetime.now():
|
||||||
update_now = True
|
update_now = True
|
||||||
else:
|
else:
|
||||||
self.use_cache = True
|
self.use_cache = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue