mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fixed comments in pokedex.lookup.
This commit is contained in:
parent
e4293afd54
commit
a7496ec617
1 changed files with 5 additions and 4 deletions
|
@ -228,10 +228,11 @@ def _whoosh_records_to_results(records, session, exact=True):
|
||||||
def lookup(input, valid_types=[], session=None, indices=None, exact_only=False):
|
def lookup(input, valid_types=[], session=None, indices=None, exact_only=False):
|
||||||
"""Attempts to find some sort of object, given a database session and name.
|
"""Attempts to find some sort of object, given a database session and name.
|
||||||
|
|
||||||
Returns a list of named (object, name, language, exact) tuples. `object`
|
Returns a list of named (object, name, language, iso3166, exact) tuples.
|
||||||
is a database object, `name` is the name under which the object was found,
|
`object` is a database object, `name` is the name under which the object
|
||||||
`language` is the name of the language in which the name was found, and
|
was found, `language` and `iso3166` are the name and country code of the
|
||||||
`exact` is True iff this was an exact match.
|
language in which the name was found, and `exact` is True iff this was an
|
||||||
|
exact match.
|
||||||
|
|
||||||
This function currently ONLY does fuzzy matching if there are no exact
|
This function currently ONLY does fuzzy matching if there are no exact
|
||||||
matches.
|
matches.
|
||||||
|
|
Loading…
Reference in a new issue