]> git.cworth.org Git - turbot/commitdiff
Don't shove the local variable hunts_table into the turb object
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 20:41:07 +0000 (13:41 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 20:41:07 +0000 (13:41 -0700)
It's not a very clean thing to do, and it's never referenced anywhere
else anyway.

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
     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,
         Item={
             'channel_id': channel_id,
             "active": True,