mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix import on startup which got broken in previous commit.
This commit is contained in:
parent
389e9cdbb0
commit
3c5d5aa16e
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime, timedelta
|
||||||
from wsgiref.handlers import format_date_time
|
from wsgiref.handlers import format_date_time
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ class Core(CorePluginBase):
|
||||||
if self.config["last_update"]:
|
if self.config["last_update"]:
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
last_update = datetime.fromtimestamp(self.config["last_update"])
|
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:
|
if not self.config["last_update"] or last_update + check_period >= now:
|
||||||
update_now = True
|
update_now = True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue