]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Put -SOLVED as a suffix on sheet names and not a prefix to preserve
[turbot] / turbot / interaction.py
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 rename the sheet to prefix with "SOLVED: "
+    # And rename the sheet to suffix with "-SOLVED"
     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(