]> git.cworth.org Git - turbot/commitdiff
hunt_link_block: Remove inadvertent trailing comma
authorCarl Worth <cworth@cworth.org>
Tue, 5 Jan 2021 02:05:37 +0000 (18:05 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 5 Jan 2021 02:05:37 +0000 (18:05 -0800)
This was creating a tuple where not intended, so causing invalid
blocks structure to be sent to Slack.

This was the cause of the recent bug preventing the Turbot Home view
from working (unless the user already belonged to every available
hunt).

turbot/events.py

index 200ab8f117aee4190707b232e3046d2b360380af..ffe13d82d246763253a32866a6f32a5d96482b8c 100644 (file)
@@ -120,7 +120,7 @@ def hunt_link_block(turb, hunt):
 
     hunt_link = "*<{}|{}>*".format(channel_url(channel_id), name)
 
-    return section_block(text_block(hunt_link)),
+    return section_block(text_block(hunt_link))
 
 def home(turb, user_id):
     """Returns a view to be published as the turbot home tab for user_id