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()
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)