From a2dd447dbdc339d871857aac0c668feaae4385c9 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 2 Dec 2023 15:32:16 +0100 Subject: [PATCH] Always check scheduled_events after scheduled_event update #410 --- .../modules/base/events/base_on_scheduled_event_update_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/modules/base/events/base_on_scheduled_event_update_event.py b/bot/src/modules/base/events/base_on_scheduled_event_update_event.py index 7c3ce268..a9000330 100644 --- a/bot/src/modules/base/events/base_on_scheduled_event_update_event.py +++ b/bot/src/modules/base/events/base_on_scheduled_event_update_event.py @@ -37,10 +37,10 @@ class BaseOnScheduledEventUpdateEvent(OnScheduledEventUpdateABC): if before.status != after.status and ( after.status.value == EventStatus.cancelled.value or after.status.value == EventStatus.completed.value ): - await self._events.check_and_create_scheduled_events(before.guild) event = self._events.get_active_event(after) if event is None: return self._events.remove_event(event) + await self._events.check_and_create_scheduled_events(before.guild) self._logger.debug(__name__, f"Module {type(self)} stopped")