Fix initial range of progress bar if no custom limit
This commit is contained in:
parent
251f344c5b
commit
777719df07
@ -114,14 +114,14 @@ class Validator():
|
||||
|
||||
if (page == 1):
|
||||
total = bundle_dict.get('total')
|
||||
if total == None:
|
||||
if total is None:
|
||||
total = 0
|
||||
logging.info(f"Found {total} resources")
|
||||
|
||||
progressbar_total = total
|
||||
if limit > 0:
|
||||
if limit < total:
|
||||
progressbar_total = limit
|
||||
else:
|
||||
progressbar_total = total
|
||||
|
||||
progress_bar = tqdm(total=progressbar_total, desc="Validating")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user