old_sheet_name = puzzle_sheet_name(old_puzzle)
if sheet_name != old_sheet_name:
- turbot.sheets.renameSheet(turb, puzzle['sheet_url'], sheet_name)
+ turbot.sheets.rename_spreadsheet(turb, puzzle['sheet_url'], sheet_name)
# Compute the Slack channel name and set it if it has changed
channel_name = puzzle_channel_name(puzzle)