]> git.cworth.org Git - turbot/blobdiff - turbot/puzzle.py
puzzle_copy: Copy the solution list as well
[turbot] / turbot / puzzle.py
index 1d1fda85bff975dea6adea33942a5eeaaece7914..caf6cede14e0a86ea6e4020ee4abbfd2a8bed745 100644 (file)
@@ -283,7 +283,7 @@ def puzzle_channel_name(puzzle):
 
     meta = ''
     if puzzle.get('type', 'plain') == 'meta':
-        meta = '-m'
+        meta = '--m'
 
     # Note: We don't use puzzle['puzzle_id'] here because we're keeping
     # that as a persistent identifier in the database. Instead we
@@ -357,4 +357,7 @@ def puzzle_copy(old_puzzle):
     if 'tags' in old_puzzle:
         new_puzzle['tags'] = old_puzzle['tags'].copy()
 
+    if 'solution' in old_puzzle:
+        new_puzzle['solution'] = old_puzzle['solution'].copy()
+
     return new_puzzle