X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/a3572776c92396e42063fecc0fd63fae25480e95..ac52b197ed6dfeb5d7ad8cb2e8f0d5b9f1cdd1d4:/pokedex/lookup.py?ds=sidebyside 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: