From: Carl Worth Date: Thu, 22 Oct 2020 11:03:54 +0000 (-0700) Subject: Drop handling of a "placeholder" value for channel_id X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=26487f2823c7d0e3690017c9b96e11da314457d1;p=turbot 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). --- 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))