This will be more reliable to match on than any particular label text.
"elements": list(elements)
}
-def button(label):
+def button(label, name):
return {
"type": "button",
"text": {
"type": "plain_text",
"text": label,
"emoji": True
- }
+ },
+ "value": name
}
def home(user_id, body):
"type": "home",
"blocks": [
section(text("This is (or soon will be) a list of available puzzle hunts)")),
- actions(button("New hunt"))
+ actions(button("New hunt", "new_hunt"))
]
}