From f62c7841023777f7eb7804ae1f0131aec481361b Mon Sep 17 00:00:00 2001 From: marc tobias Date: Wed, 20 Jan 2021 21:09:41 +0100 Subject: [PATCH] correct parameter name in query CLI --- nominatim/cli.py | 2 +- nominatim/tools/exec_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. """ -- 2.39.5