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:
parent
4a03885956
commit
41dbbbaa9b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user