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,
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
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)),