From af3084ad36e1106af638e11e66a88bca9ef04e75 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 1 Dec 2023 21:04:29 +0100 Subject: [PATCH] Fixed scheduled event end 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 511e19a4..7c3ce268 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")