X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5e477e3b5b99da6fc4e54749d4671a6fc8fdcd66..f1fbcd863d624a63847a7a06469b7622a07a1cb7:/nominatim/clicmd/add_data.py diff --git a/nominatim/clicmd/add_data.py b/nominatim/clicmd/add_data.py index 8905bc21..3f31d216 100644 --- a/nominatim/clicmd/add_data.py +++ b/nominatim/clicmd/add_data.py @@ -76,21 +76,25 @@ class UpdateAddData: osm2pgsql_params = args.osm2pgsql_options(default_cache=1000, default_threads=1) if args.file or args.diff: - return add_osm_data.add_data_from_file(cast(str, args.file or args.diff), + return add_osm_data.add_data_from_file(args.config.get_libpq_dsn(), + cast(str, args.file or args.diff), osm2pgsql_params) if args.node: - return add_osm_data.add_osm_object('node', args.node, + return add_osm_data.add_osm_object(args.config.get_libpq_dsn(), + 'node', args.node, args.use_main_api, osm2pgsql_params) if args.way: - return add_osm_data.add_osm_object('way', args.way, + return add_osm_data.add_osm_object(args.config.get_libpq_dsn(), + 'way', args.way, args.use_main_api, osm2pgsql_params) if args.relation: - return add_osm_data.add_osm_object('relation', args.relation, + return add_osm_data.add_osm_object(args.config.get_libpq_dsn(), + 'relation', args.relation, args.use_main_api, osm2pgsql_params)