]> git.cworth.org Git - turbot/commitdiff
Put -SOLVED as a suffix on sheet names and not a prefix to preserve
authorjustin melvin <jmelvinprime@gmail.com>
Wed, 6 Jan 2021 05:18:17 +0000 (21:18 -0800)
committerjustin melvin <jmelvinprime@gmail.com>
Wed, 6 Jan 2021 05:18:17 +0000 (21:18 -0800)
alphabetical ordering.

TODO
turbot/interaction.py

diff --git a/TODO b/TODO
index bf232bdca8585331f45211c0a5d28e153e8b492f..34481a6fedb9fe6bdcc4ed60e1f8c91da6fe095b 100644 (file)
--- a/TODO
+++ b/TODO
@@ -81,12 +81,6 @@ Sheet-related fixes
   have backup access to all of them on the off chance of Slack not
   being available.)
 
   have backup access to all of them on the off chance of Slack not
   being available.)
 
-• Question: Having "SOLVED" at the beginning of the sheet name is nice
-  for makint it noticeable with the sheet open, but it changes the
-  order of the sheet in the folder view. Do we maybe want to put
-  "SOLVED" at the end of the name so that puzzle sheets can be
-  reliably found in an ordered position regardless of solved status?
-
 • Come up with a better sheet template
 
 • Put the puzzle's name into the primary tab of the sheet
 • Come up with a better sheet template
 
 • Put the puzzle's name into the primary tab of the sheet
index e6f7503e20bf2ffd5a1e53ae924230ab370a4931..b50a6588129e9fbf04e117d7ec2a33ddefb70661 100644 (file)
@@ -598,9 +598,9 @@ def solved(turb, body, args):
     # And update the puzzle's description
     set_channel_topic(turb, puzzle)
 
     # And update the puzzle's description
     set_channel_topic(turb, puzzle)
 
-    # And rename the sheet to prefix with "SOLVED: "
+    # And rename the sheet to suffix with "-SOLVED"
     turbot.sheets.renameSheet(turb, puzzle['sheet_url'],
     turbot.sheets.renameSheet(turb, puzzle['sheet_url'],
-                              'SOLVED: ' + puzzle['name'])
+                             puzzle['name'] + "-SOLVED")
 
     # Finally, rename the Slack channel to add the suffix '-solved'
     channel_name = "{}-{}-solved".format(
 
     # Finally, rename the Slack channel to add the suffix '-solved'
     channel_name = "{}-{}-solved".format(