Fix regression in scheduled news downloaded when using specific time of day

This commit is contained in:
Kovid Goyal 2009-02-01 12:57:02 -08:00
parent 0bced7741e
commit fab5fc5d73

View File

@ -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)