From cccd1b8436efd1f0796155ccbd3ec4f4d9f95ba8 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 23 Aug 2008 13:00:35 +0000 Subject: [PATCH] Fix bug in Blocklist that prevented downloading of new file every X days --- ChangeLog | 3 +++ deluge/plugins/blocklist/blocklist/core.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8bbc31663..60b48a6db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ Deluge 0.9.08 - "1.0.0_RC8" (In Development) Core: * Attempt to automatically upgrade a 0.5.x state file to new format + + Plugins: + * Fix bug in Blocklist that prevented downloading of new file every X days GtkUI: * Sort filenames alphabetically in add torrent dialog diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index f59378854..8e20af3e9 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -245,7 +245,7 @@ class Core(CorePluginBase): if list_size == 0: return True - if current_time >= (list_time + datetime.timedelta(self.config["check_after_days"] * 24 * 60 * 60)): + if current_time >= (list_time + datetime.timedelta(days=self.config["check_after_days"])): return True return False