]> git.cworth.org Git - turbot/commitdiff
Fix "New Hunt" button to actually call new_hunt_button function
authorCarl Worth <cworth@cworth.org>
Mon, 15 Nov 2021 23:52:22 +0000 (15:52 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 15 Nov 2021 23:52:22 +0000 (15:52 -0800)
Was previously calling new_hunt function directly which cannot work.

turbot/interaction.py

index 580aad52b15e2b03e002fb835917c615d86c2ec8..4a36b71b9e074eead82ce4fbb1fbd51643825e5a 100644 (file)
@@ -501,6 +501,7 @@ def new_hunt_command(turb, body):
 def new_hunt_button(turb, payload):
     """Handler for the action of user pressing the new_hunt button"""
 
+    print("In new_hunt_button with payload of: " + str(payload))
     trigger_id = payload['trigger_id']
 
     return new_hunt(turb, trigger_id)
@@ -534,7 +535,7 @@ def new_hunt(turb, trigger_id):
 
     return lambda_ok
 
-actions['button']['new_hunt'] = new_hunt
+actions['button']['new_hunt'] = new_hunt_button
 
 def new_hunt_submission(turb, payload, metadata):
     """Handler for the user submitting the new hunt modal