]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/clicmd/setup.py
use yaml config loader for country info
[nominatim.git] / nominatim / clicmd / setup.py
index 014c9dc9ca6fb25a4a310d3c5ad7fba6c3bd9fa6..a3fbb84610172815a5befca3818c51b5749814e8 100644 (file)
@@ -55,7 +55,7 @@ class SetupAll:
         from ..tools import database_import, refresh, postcodes, freeze, country_info
         from ..indexer.indexer import Indexer
 
-        country_info.setup_country_config(args.config.config_dir / 'country_settings.yaml')
+        country_info.setup_country_config(args.config)
 
         if args.continue_at is None:
             files = args.get_osm_file_list()
@@ -117,7 +117,6 @@ class SetupAll:
             LOG.warning('Create search index for default country names.')
             country_info.create_country_names(conn, tokenizer,
                                               args.config.LANGUAGES)
-            conn.commit()
             if args.no_updates:
                 freeze.drop_update_tables(conn)
         tokenizer.finalize_import(args.config)