]> git.cworth.org Git - turbot/commitdiff
Fix missing case of nested array
authorCarl Worth <cworth@cworth.org>
Sat, 16 Jan 2021 16:11:23 +0000 (08:11 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 16 Jan 2021 16:11:23 +0000 (08:11 -0800)
Hoping we're there now with this fix?

turbot/hunt.py

index 7b515d21c0012ccf5b8f74f9f7962f0ef00349cf..5edd443e59cc00da59aa14308a6b3fd133246a0a 100644 (file)
@@ -116,10 +116,12 @@ def hunt_blocks(turb, hunt, puzzle_status='unsolved', search_terms=[],
         hunt_text += " matching {}".format(" AND ".join(quoted_terms))
 
     blocks = [
-        accessory_block(
-            section_block(text_block(hunt_text)),
-            button_block("✏", "edit_hunt", hunt_id)
-        )
+        [
+            accessory_block(
+                section_block(text_block(hunt_text)),
+                button_block("✏", "edit_hunt", hunt_id)
+            )
+        ]
     ]
     block = blocks[0]