]> git.cworth.org Git - turbot/blobdiff - turbot/events.py
Add a hunt_id attribute and index to the database for hunts
[turbot] / turbot / events.py
index 86a3c837d15f2f28485c13c7ae7a913c454f803c..64430e5527a0a72395c3a818223f2eb115494dcf 100644 (file)
@@ -221,14 +221,14 @@ def puzzle_channel_created(turb, puzzle_channel_name, puzzle_channel_id):
     # string and cleanly return (eliminating all future retries).
     item['sheet_url'] = 'pending'
     item['channel_url'] = channel_url(puzzle_channel_id)
-    puzzle_table.put_item(Item=item)
+    turb.table.put_item(Item=item)
 
     # Create a sheet for the puzzle
     sheet = sheets_create_for_puzzle(turb, item)
 
     # Update the database with the URL of the sheet
     item['sheet_url'] = sheet['url']
-    puzzle_table.put_item(Item=item)
+    turb.table.put_item(Item=item)
 
     # Get the new sheet_url into the channel description
     set_channel_description(turb, item)