Fixed scheduled_events #410
This commit is contained in:
parent
b98828fce3
commit
090f217f93
@ -64,6 +64,8 @@ class ScheduledEventsWatcher(TaskABC):
|
|||||||
elif interval == ScheduledEventIntervalEnum.yearly:
|
elif interval == ScheduledEventIntervalEnum.yearly:
|
||||||
ts = ts + timedelta(days=365)
|
ts = ts + timedelta(days=365)
|
||||||
|
|
||||||
|
if ts < now:
|
||||||
|
return self._append_interval(interval, ts)
|
||||||
return ts
|
return ts
|
||||||
|
|
||||||
@tasks.loop(hours=24)
|
@tasks.loop(hours=24)
|
||||||
|
Loading…
Reference in New Issue
Block a user