From: Carl Worth Date: Wed, 21 Oct 2020 20:41:07 +0000 (-0700) Subject: Don't shove the local variable hunts_table into the turb object X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=dd449afa51bfba220cc82df2f36dce8934287647;p=turbot 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. --- 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,