Linting fixes

This commit is contained in:
Darkshredder 2021-03-08 23:10:49 +05:30
parent 122c4618b9
commit 14ec83c886
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View 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):