Author: johnnyg

Revision: 6034

Log:
        Fix import on startup which got broken in previous commit.

Diff:
Modified: branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py  2009-12-16 
11:55:34 UTC (rev 6033)
+++ branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py  2009-12-16 
12:46:57 UTC (rev 6034)
@@ -36,7 +36,7 @@
 
 import os
 import time
-from datetime import datetime
+from datetime import datetime, timedelta
 from wsgiref.handlers import format_date_time
 import shutil
 
@@ -92,7 +92,7 @@
             if self.config["last_update"]:
                 now = datetime.now()
                 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:
                 update_now = True
             else:

Modified: trunk/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/core.py    2009-12-16 11:55:34 UTC 
(rev 6033)
+++ trunk/deluge/plugins/blocklist/blocklist/core.py    2009-12-16 12:46:57 UTC 
(rev 6034)
@@ -36,7 +36,7 @@
 
 import os
 import time
-from datetime import datetime
+from datetime import datetime, timedelta
 from wsgiref.handlers import format_date_time
 import shutil
 
@@ -92,7 +92,7 @@
             if self.config["last_update"]:
                 now = datetime.now()
                 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:
                 update_now = True
             else:


--

You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to