projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ee57dfd
)
Lookup search lowercases the term again; whoops. #15
author
Eevee
<git@veekun.com>
Tue, 28 Jul 2009 01:45:43 +0000
(18:45 -0700)
committer
Eevee
<git@veekun.com>
Tue, 28 Jul 2009 01:45:43 +0000
(18:45 -0700)
pokedex/lookup.py
patch
|
blob
|
history
diff --git
a/pokedex/lookup.py
b/pokedex/lookup.py
index
8c92edb
..
9d61ce8
100644
(file)
--- 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: