From fab5fc5d73444434464cf02336713727cc057836 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Feb 2009 12:57:02 -0800 Subject: [PATCH] Fix regression in scheduled news downloaded when using specific time of day --- src/calibre/gui2/dialogs/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/scheduler.py b/src/calibre/gui2/dialogs/scheduler.py index 62dd79ac9b..9c9204c398 100644 --- a/src/calibre/gui2/dialogs/scheduler.py +++ b/src/calibre/gui2/dialogs/scheduler.py @@ -432,7 +432,7 @@ class Scheduler(QObject): day_matches = day > 6 or day == now.tm_wday tnow = now.tm_hour*60 + now.tm_min matches = day_matches and (hour*60+minute) < tnow - if matches and nowt.toordinal() < date.today().toordinal(): + if matches and recipe.last_downloaded.toordinal() < date.today().toordinal(): needs_downloading.add(recipe) self.debug('Needs downloading:', needs_downloading)