X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/077a8c1f95d2c0a18722f705df4b98d83d6f9385..886a01c7967a0449cedd0a04a41430174aeba9ea:/nominatim/tools/database_import.py diff --git a/nominatim/tools/database_import.py b/nominatim/tools/database_import.py index 4ba4493c..964bc702 100644 --- a/nominatim/tools/database_import.py +++ b/nominatim/tools/database_import.py @@ -11,13 +11,13 @@ from pathlib import Path import psutil import psycopg2 -from ..db.connection import connect, get_pg_env -from ..db import utils as db_utils -from ..db.async_connection import DBConnection -from ..db.sql_preprocessor import SQLPreprocessor -from .exec_utils import run_osm2pgsql -from ..errors import UsageError -from ..version import POSTGRESQL_REQUIRED_VERSION, POSTGIS_REQUIRED_VERSION +from nominatim.db.connection import connect, get_pg_env +from nominatim.db import utils as db_utils +from nominatim.db.async_connection import DBConnection +from nominatim.db.sql_preprocessor import SQLPreprocessor +from nominatim.tools.exec_utils import run_osm2pgsql +from nominatim.errors import UsageError +from nominatim.version import POSTGRESQL_REQUIRED_VERSION, POSTGIS_REQUIRED_VERSION LOG = logging.getLogger() @@ -330,7 +330,7 @@ def create_country_names(conn, config): sql_statement = "{} IN (".format(sql_statement) delim = '' for language in languages.split(','): - sql_statement = "{}{}'name:{}'".format(sql_statement,delim,language) + sql_statement = "{}{}'name:{}'".format(sql_statement, delim, language) delim = ', ' sql_statement = '{})'.format(sql_statement) else: