Fixed scheduled_events #410
All checks were successful
Deploy staging on push / on-push-deploy_sh-edraft (push) Successful in 3m37s
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 3m39s

This commit is contained in:
Sven Heidemann 2023-11-30 17:57:43 +01:00
parent b98828fce3
commit 090f217f93

View File

@ -64,6 +64,8 @@ class ScheduledEventsWatcher(TaskABC):
elif interval == ScheduledEventIntervalEnum.yearly:
ts = ts + timedelta(days=365)
if ts < now:
return self._append_interval(interval, ts)
return ts
@tasks.loop(hours=24)