mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -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):
|
def nextRun(self):
|
||||||
if self.action._lastBacklog <= 1:
|
if self.action._lastBacklog <= 1:
|
||||||
return datetime.date.today()
|
return datetime.datetime.today()
|
||||||
else:
|
else:
|
||||||
return datetime.date.fromordinal(self.action._lastBacklog + self.action.cycleTime)
|
return datetime.datetime.fromordinal(self.action._lastBacklog + self.action.cycleTime)
|
||||||
|
|
||||||
|
|
||||||
class BacklogSearcher:
|
class BacklogSearcher:
|
||||||
|
Loading…
Reference in New Issue
Block a user