]> git.cworth.org Git - turbot/commitdiff
Fix call to find_hunt_for_hunt_id
authorCarl Worth <cworth@cworth.org>
Mon, 11 Jan 2021 17:58:12 +0000 (09:58 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 11 Jan 2021 18:00:48 +0000 (10:00 -0800)
It takes two parameters, not one, (was missing "turb" argument).

This should fix the edit_hunt button (the pencil) which was erroring
out while this bug was present.

turbot/interaction.py

index e0203894bfb8a6a9c76e916bf5668ad6c5d19f3f..69d4f2505d52a1fd1905b3c36298bfc8b068c466 100644 (file)
@@ -385,7 +385,7 @@ def edit_hunt_button(turb, payload):
     hunt_id = payload['actions'][0]['action_id']
     trigger_id = payload['trigger_id']
 
-    hunt = find_hunt_for_hunt_id(hunt_id)
+    hunt = find_hunt_for_hunt_id(turb, hunt_id)
 
     if not hunt:
         return bot_reply("Error: Hunt not found.")