From 26487f2823c7d0e3690017c9b96e11da314457d1 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 22 Oct 2020 04:03:54 -0700 Subject: [PATCH] Drop handling of a "placeholder" value for channel_id We're not using this anymore, (instead starting out with active=False until the hunt is really up and running). --- turbot/events.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/turbot/events.py b/turbot/events.py index 9c70e2e..eff5778 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -15,12 +15,7 @@ def hunt_block(hunt): name = hunt['name'] channel_id = hunt['channel_id'] - text = "{}: ".format(name) - - if (channel_id.startswith("placeholder-")): - text += "[Slack channel is still being created. Please wait.]" - else: - text += "<#{}>".format(channel_id) + text = "{}: <#{}>".format(name, channel_id) return section_block(text_block(text)) -- 2.45.2