]> git.cworth.org Git - turbot/blobdiff - turbot/puzzle.py
Rename each sheet we copy from the template
[turbot] / turbot / puzzle.py
index 1dbea5d74906c447b3e6b09df70758f4379389d5..f2816acb5b42b5903c3587060bc03680e706d670 100644 (file)
@@ -290,7 +290,7 @@ def puzzle_update_channel_and_sheet(turb, puzzle, old_puzzle=None):
         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)