mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
Linting fixes
This commit is contained in:
parent
122c4618b9
commit
14ec83c886
@ -168,10 +168,10 @@ class UpdateAddData:
|
|||||||
def run(args):
|
def run(args):
|
||||||
if args.tiger_data:
|
if args.tiger_data:
|
||||||
return tiger_data.add_tiger_data(args.config.get_libpq_dsn(),
|
return tiger_data.add_tiger_data(args.config.get_libpq_dsn(),
|
||||||
args.tiger_data,
|
args.tiger_data,
|
||||||
args.threads or 1,
|
args.threads or 1,
|
||||||
args.config,
|
args.config,
|
||||||
args.sqllib_dir)
|
args.sqllib_dir)
|
||||||
|
|
||||||
params = ['update.php']
|
params = ['update.php']
|
||||||
if args.file:
|
if args.file:
|
||||||
|
@ -54,7 +54,7 @@ def add_tiger_data(dsn, data_dir, threads, config, sqllib_dir):
|
|||||||
lines = 0
|
lines = 0
|
||||||
end_of_file = False
|
end_of_file = False
|
||||||
total_used_threads = place_threads
|
total_used_threads = place_threads
|
||||||
while True :
|
while True:
|
||||||
if end_of_file:
|
if end_of_file:
|
||||||
break
|
break
|
||||||
for imod in range(place_threads):
|
for imod in range(place_threads):
|
||||||
|
Loading…
Reference in New Issue
Block a user