X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/284645f5057b1138ecf2faa3a6beae63370cc3d1..02d357d29e40a8dfe5bc8eb4eac35c3ad3cc0958:/nominatim/clicmd/setup.py diff --git a/nominatim/clicmd/setup.py b/nominatim/clicmd/setup.py index e925f665..a3fbb846 100644 --- a/nominatim/clicmd/setup.py +++ b/nominatim/clicmd/setup.py @@ -55,6 +55,8 @@ class SetupAll: from ..tools import database_import, refresh, postcodes, freeze, country_info from ..indexer.indexer import Indexer + country_info.setup_country_config(args.config) + if args.continue_at is None: files = args.get_osm_file_list() @@ -113,9 +115,8 @@ class SetupAll: database_import.create_search_indices(conn, args.config, drop=args.no_updates) LOG.warning('Create search index for default country names.') - database_import.create_country_names(conn, tokenizer, - args.config.LANGUAGES) - conn.commit() + country_info.create_country_names(conn, tokenizer, + args.config.LANGUAGES) if args.no_updates: freeze.drop_update_tables(conn) tokenizer.finalize_import(args.config)