From: Carl Worth Date: Mon, 11 Jan 2021 17:58:12 +0000 (-0800) Subject: Fix call to find_hunt_for_hunt_id X-Git-Url: https://git.cworth.org/git?p=turbot;a=commitdiff_plain;h=0bab5b46f6a9d98b2e7f1c8b14eda73569d8e4b9 Fix call to find_hunt_for_hunt_id 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. --- diff --git a/turbot/interaction.py b/turbot/interaction.py index e020389..69d4f25 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -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.")