]> git.cworth.org Git - turbot/blobdiff - turbot/hunt.py
Tweak bolding of hunt lead-in line from search results
[turbot] / turbot / hunt.py
index a832f1db2693aed5efdc5016d24d2c6f7ccaac93..f57e7565f5998a55a207dbf617422735491db4af 100644 (file)
@@ -46,9 +46,9 @@ def hunt_blocks(turb, hunt, puzzle_status='unsolved', search_terms=[]):
       search_terms: A list of search terms. Only puzzles that match
                     all of these terms will be included in the
                     result. A match will be considered on any of
-                    puzzle title, round title, puzzle URL, or solution
-                    string. Terms can include regular expression
-                    syntax.
+                    puzzle title, round title, puzzle URL, puzzle
+                    state or solution string. Terms can include
+                    regular expression syntax.
 
     The return value can be used in a Slack command expecting blocks to
     provide all the details of a hunt, (puzzles, their state,
@@ -86,7 +86,7 @@ def hunt_blocks(turb, hunt, puzzle_status='unsolved', search_terms=[]):
         for round in puzzle['rounds']:
             rounds.add(round)
 
-    hunt_text = "*{} puzzles in hunt <{}|{}>".format(
+    hunt_text = "*{}* puzzles in hunt <{}|{}>".format(
         puzzle_status.capitalize(),
         channel_url(channel_id),
         name
@@ -94,7 +94,6 @@ def hunt_blocks(turb, hunt, puzzle_status='unsolved', search_terms=[]):
     if search_terms:
         quoted_terms = [quote_if_has_space(term) for term in search_terms]
         hunt_text += " matching {}".format(" AND ".join(quoted_terms))
-    hunt_text += "*"
 
     blocks = [
         section_block(text_block(hunt_text)),