]> git.cworth.org Git - turbot/commitdiff
Put solution after puzzle name in /hunt reports
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 11:27:27 +0000 (03:27 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 11:27:27 +0000 (03:27 -0800)
The concept here is to keep the puzzle names aligned to make it easier
to find a puzzle of interest in the sorted list.

turbot/puzzle.py

index 037dd5e01b3599dc7cca0b329d18777c2c532eaf..b86a529ed47b9d5c64e6d4660104bcbfeb58a0e9 100644 (file)
@@ -95,10 +95,11 @@ def puzzle_blocks(puzzle, include_rounds=False):
             ", ".join(rounds)
         )
 
-    puzzle_text = "{}{} {}<{}|{}> ({}){}{}".format(
-        status_emoji, solution_str,
+    puzzle_text = "{} {}<{}|{}> {} ({}){}{}".format(
+        status_emoji,
         meta_str,
         channel_url(channel_id), name,
+        solution_str,
         ', '.join(links), rounds_str,
         state_str
     )