From 20d40364b126fa292e315623513105264effc80f Mon Sep 17 00:00:00 2001 From: Eevee Date: Mon, 27 Jul 2009 18:45:43 -0700 Subject: [PATCH] Lookup search lowercases the term again; whoops. #15 --- pokedex/lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/lookup.py b/pokedex/lookup.py index 8c92edb..9d61ce8 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -133,7 +133,7 @@ def lookup(session, name, exact_only=False): # Look for exact name. A Term object does an exact match, so we don't have # to worry about a query parser tripping on weird characters in the input searcher = index.searcher() - query = whoosh.query.Term('name', name) + query = whoosh.query.Term('name', name.lower()) results = searcher.search(query) if not exact_only: