From: marc tobias Date: Wed, 20 Jan 2021 20:09:41 +0000 (+0100) Subject: correct parameter name in query CLI X-Git-Tag: v3.7.0~50^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f62c7841023777f7eb7804ae1f0131aec481361b?ds=sidebyside;hp=ffc221a87fff8e094066c68b84d7e42d91146066 correct parameter name in query CLI --- diff --git a/nominatim/cli.py b/nominatim/cli.py index 34b19d7d..70481b4a 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -494,7 +494,7 @@ STRUCTURED_QUERY = ( ('county', 'county'), ('state', 'state'), ('country', 'country'), - ('postcalcode', 'postcode') + ('postalcode', 'postcode') ) EXTRADATA_PARAMS = ( diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index ca30b2f7..d5b08392 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -34,7 +34,7 @@ def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None, The function needs a project directory that contains the website directory with the scripts to be executed. The scripts will be run - using php_cgi. Query parameters can be addd as named arguments. + using php_cgi. Query parameters can be added as named arguments. Returns the exit code of the script. """