]> git.cworth.org Git - turbot/blobdiff - turbot/actions.py
Don't shove the local variable hunts_table into the turb object
[turbot] / turbot / actions.py
index 9df05ad90399c7a4aa3a4c37c2b41369cc7c40a0..00708b0e66f59c78d48b53836c9354708fbe34ba 100644 (file)
@@ -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,