From b062611feca67d0621b973f08addfbd5497de5d0 Mon Sep 17 00:00:00 2001 From: Micha Albert Date: Sat, 31 Aug 2024 13:57:54 +0000 Subject: [PATCH] Add empty handler for session submit and rename check func --- onboard_live_backend/main.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/onboard_live_backend/main.py b/onboard_live_backend/main.py index 8525cf2..75cf63b 100644 --- a/onboard_live_backend/main.py +++ b/onboard_live_backend/main.py @@ -375,6 +375,11 @@ async def handle_app_home_opened_events(body, logger, event, client): ) +@bolt.action("submit_sessions") +async def submit_sessions(ack, body): + await ack() + + @bolt.action("deny") async def deny(ack, body): await ack() @@ -753,7 +758,11 @@ async def apply(ack: AsyncAck, command): @bolt.action("checkboxes") -async def handle_some_action(ack): +async def checkboxes(ack): + """ + AFAICT there needs to be *an* action for the checkboxes, but I process their data elsewhere (on submit) + To avoid warnings in Slack, I'm just ACKing it here and doing nothing :) + """ await ack()