puzzle_table.put_item(Item=item)
# Create a sheet for the puzzle
- sheet = turbot.sheets.sheets_create_for_puzzle(turb, puzzle_channel_name)
+ sheet = turbot.sheets.sheets_create_for_puzzle(turb, item['name'])
# Update the database with the URL of the sheet
item['sheet_url'] = sheet['url']
# Get the new sheet_url into the channel description
set_channel_description(turb, item)
+ # Finally, lookup and invite all users from this hunt to this new puzzle
hunts_table = turb.db.Table('hunts')
response = hunts_table.scan(
FilterExpression='hunt_id = :hunt_id',
else:
return hunt_channel_created(turb, channel_name, channel_id)
-
-
events['channel_created'] = channel_created