X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=turbot%2Fevents.py;h=0a1eb099e8d3744782bd665be10f11ac03849799;hb=63b8b210af4243a52612d1c8032866ca76e74d61;hp=8d70a21d45634053ddd836ce5a98a1059806667e;hpb=2eed8166870112aeea0a666b0367a84ce1f36fa9;p=turbot diff --git a/turbot/events.py b/turbot/events.py index 8d70a21..0a1eb09 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -243,10 +243,11 @@ def puzzle_channel_created(turb, puzzle_channel_name, puzzle_channel_id): # and Slack retries the event, that next event will see this 'pending' # 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) # Create a sheet for the puzzle - sheet = turbot.sheets.sheets_create_for_puzzle(turb, item['name']) + sheet = turbot.sheets.sheets_create_for_puzzle(turb, item) # Update the database with the URL of the sheet item['sheet_url'] = sheet['url']