]> git.cworth.org Git - turbot/commit
Add (and use) a new function find_hunt_for_hunt_id
authorCarl Worth <cworth@cworth.org>
Sun, 27 Dec 2020 20:34:58 +0000 (12:34 -0800)
committerCarl Worth <cworth@cworth.org>
Sun, 27 Dec 2020 20:39:25 +0000 (12:39 -0800)
commit8ffca056fb60e37779fb9807ff64cb0b183e6d2f
tree2faba2474f665378d5deb8ea5effdeb189693f20
parent1b30b2a273175896a209d9c37ef08a47d8af6175
Add (and use) a new function find_hunt_for_hunt_id

The code to call get_table_item with a hunt_id was broken, (since in
the schema, hunt_id is not the key, only channel_id is), so instead we
need to scan the table looking for a matching hunt_id. We already had
code to do this is find_hunt_for_channel, so here we factor that out
into a new function, find_hunt_for_hunt_id and call it instead of
get_table_item.
turbot/interaction.py