1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix backlog nextrun to return datetime instead of just date

This commit is contained in:
echel0n 2014-09-15 06:29:16 -07:00
parent 4a03885956
commit 41dbbbaa9b

View File

@ -37,9 +37,9 @@ class BacklogSearchScheduler(scheduler.Scheduler):
def nextRun(self):
if self.action._lastBacklog <= 1:
return datetime.date.today()
return datetime.datetime.today()
else:
return datetime.date.fromordinal(self.action._lastBacklog + self.action.cycleTime)
return datetime.datetime.fromordinal(self.action._lastBacklog + self.action.cycleTime)
class BacklogSearcher: