From dd449afa51bfba220cc82df2f36dce8934287647 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Oct 2020 13:41:07 -0700 Subject: [PATCH] Don't shove the local variable hunts_table into the turb object It's not a very clean thing to do, and it's never referenced anywhere else anyway. --- turbot/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turbot/actions.py b/turbot/actions.py index 9df05ad..00708b0 100644 --- a/turbot/actions.py +++ b/turbot/actions.py @@ -76,8 +76,8 @@ def new_hunt_submission(turb, payload): sheet = turbot.sheets.sheets_create(turb, hunt_id) # Insert the newly-created hunt into the database - turb.hunts_table = turb.db.Table("hunts") - turb.hunts_table.put_item( + hunts_table = turb.db.Table("hunts") + hunts_table.put_item( Item={ 'channel_id': channel_id, "active": True, -- 2.45.2