Fuzzy lookup results were not respecting type limits.

This commit is contained in:
Eevee 2010-06-28 21:58:08 -07:00
parent 9596906621
commit 5eb41ddeb6

View file

@ -449,6 +449,8 @@ class PokedexLookup(object):
name, self.INTERMEDIATE_LOOKUP_RESULTS):
query = whoosh.query.Term('name', suggestion)
if type_term:
query = query & type_term
results.extend(searcher.search(query))
### Convert results to db objects