mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
allow multiple files for the import command
The files are forwarded to osm2pgsql which is now able to merge them correctly.
This commit is contained in:
@@ -130,6 +130,9 @@ def run_osm2pgsql(options):
|
||||
|
||||
if 'import_data' in options:
|
||||
cmd.extend(('-r', 'xml', '-'))
|
||||
elif isinstance(options['import_file'], list):
|
||||
for fname in options['import_file']:
|
||||
cmd.append(str(fname))
|
||||
else:
|
||||
cmd.append(str(options['import_file']))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user