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:
82f8dc6
)
Remove special lookup logic for forms.
author
Eevee
<git@veekun.com>
Wed, 24 Mar 2010 02:43:42 +0000
(19:43 -0700)
committer
Eevee
<git@veekun.com>
Mon, 29 Mar 2010 05:18:26 +0000
(22:18 -0700)
pokedex/lookup.py
patch
|
blob
|
history
diff --git
a/pokedex/lookup.py
b/pokedex/lookup.py
index
79ea5b7
..
f35e335
100644
(file)
--- a/
pokedex/lookup.py
+++ b/
pokedex/lookup.py
@@
-343,15
+343,7
@@
class PokedexLookup(object):
query = whoosh.query.Term(u'row_id', name)
else:
# Not an integer
query = whoosh.query.Term(u'row_id', name)
else:
# Not an integer
- query = whoosh.query.Term(u'name', name) \
- & whoosh.query.Term(u'forme_name', u'__empty__')
-
- # If there's a space in the input, this might be a form
- if ' ' in name:
- form, formless_name = name.split(' ', 1)
- form_query = whoosh.query.Term(u'name', formless_name) \
- & whoosh.query.Term(u'forme_name', form)
- query = query | form_query
+ query = whoosh.query.Term(u'name', name)
### Filter by type of object
type_terms = []
### Filter by type of object
type_terms = []