From f261affba59d0d8853d7e486acf2a91e36d96071 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Sat, 9 Jan 2021 05:39:30 -0800
Subject: [PATCH] Add hint to expand search terms if implicitly filtered

I keep accidentally missing some search results when testing because
I'm searching for a tag that only exists on a solved puzzle so something
like:

	/hunt cryptic

is not finding the solved puzzle with the CRYTPIC tag due to the
implicit filtering to only unsolved puzzles.

I still want that implicit filtering, but maybe this nudge will be
helpful in cases like this.
---
 turbot/hunt.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/turbot/hunt.py b/turbot/hunt.py
index 1e46f6c..5bbbbc6 100644
--- a/turbot/hunt.py
+++ b/turbot/hunt.py
@@ -114,8 +114,11 @@ def hunt_blocks(turb, hunt, puzzle_status='unsolved', search_terms=[],
     ]
 
     if not len(puzzles):
+        text = "No puzzles found."
+        if puzzle_status != 'all':
+            text += ' (Consider searching for "all" puzzles?)'
         blocks += [
-            section_block(text_block("No puzzles found."))
+            section_block(text_block(text))
         ]
 
     # Construct blocks for each round
-- 
2.45.2