From 3f380c6d5227b99d703d5c8ed3c753e4d179415a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 9 Jan 2021 05:47:33 -0800 Subject: [PATCH] Fix sheet creation to copy all sheets from our template Nathan put a lot of word into this template sheet, so it was a shame the sheets weren't all coming over. It turned out the only reason that was the case is that the code has a hard-coded list of names of sheets to copy, (and that, only because I haven't yet figured out the API for enumerating sheets). For now, just update the hardcoded list to match what's in the current template. --- TODO | 4 ---- turbot/sheets.py | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index d1605e2..9f9b903 100644 --- a/TODO +++ b/TODO @@ -85,10 +85,6 @@ Sheet-related fixes have backup access to all of them on the off chance of Slack not being available.) -• Come up with a better sheet template (Nathan has got one available here: - -https://docs.google.com/spreadsheets/d/1drSoyrE4gM3JaGweDkOybwXWdKPIDTfUmB1gQCYS3Uw/edit#gid=1471575838 - • Put the puzzle's name into the primary tab of the sheet • When copying tabs from the spreadsheet template, don't leave the diff --git a/turbot/sheets.py b/turbot/sheets.py index bc7c7c6..9f8b7c3 100644 --- a/turbot/sheets.py +++ b/turbot/sheets.py @@ -1,5 +1,6 @@ PUZZLE_TEMPLATE_ID = "1drSoyrE4gM3JaGweDkOybwXWdKPIDTfUmB1gQCYS3Uw" -PUZZLE_TEMPLATE_SHEETS = ["Text", "Grid"] +PUZZLE_TEMPLATE_SHEETS = ["Text", "Square grid", "Hex Grid", + "Formula reference: indexing"] def sheets_create(turb, name): """Create a new sheet with the given name. -- 2.43.0