mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
eb6cae4bf3
Now results are sorted by is-this-your-language (times levenshtein distance, if appropriate), then by rough class of result (Pokémon, then moves, then abilities, etc.) and finally by name. This fixes a couple issues: - If both a foreign name and a local name matched a wildcard lookup, you'll see the local name. Before, you'd see whichever happened to be first alphabetically. - Wildcard results are more likely to have useful stuff at the top, rather than being dominated by foreign junk and names of obscure locations. This also updates our usage of the whoosh API, which was old and busted as of 2.0 or so. |
||
---|---|---|
.. | ||
data/csv | ||
db | ||
struct | ||
tests | ||
util | ||
__init__.py | ||
compatibility.py | ||
defaults.py | ||
formulae.py | ||
lookup.py | ||
main.py | ||
roomaji.py |