From 77ed205f573a9d01e30668f6b259064820bb3508 Mon Sep 17 00:00:00 2001 From: Cyb3rL1z4rd <167361692+Cyb3rL1z4rd@users.noreply.github.com> Date: Thu, 22 May 2025 18:37:46 -0400 Subject: [PATCH] fix: Event patch (#26) Added return to prevent users being "pending" when "not attending" is selected. Fixes #25. --------- Co-authored-by: HumanoidSandvichDispenser <25856867+HumanoidSandvichDispenser@users.noreply.github.com> --- backend-flask/discord_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend-flask/discord_bot.py b/backend-flask/discord_bot.py index 0959e9a..90b6a11 100644 --- a/backend-flask/discord_bot.py +++ b/backend-flask/discord_bot.py @@ -80,7 +80,8 @@ async def handle_update_attendance( app_db.db_session.commit() event.update_discord_message() await interaction.response.defer() - + return + if not player_event: player_event = PlayerEvent() player_event.event_id = event.id