]> git.cworth.org Git - turbot/commitdiff
Fix sheet creation to copy all sheets from our template
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 13:47:33 +0000 (05:47 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 13:52:12 +0000 (05:52 -0800)
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
turbot/sheets.py

diff --git a/TODO b/TODO
index d1605e25909b5bf26636884d17dd95f91902f091..9f9b903113a9d9e84b815c210abadf9fc57f02d7 100644 (file)
--- 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
index bc7c7c68ceb777a2e0cd86b366264ae1e47da3ae..9f8b7c3e0d38eabb0fd08332b684ea39789fea66 100644 (file)
@@ -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.