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):
|
if (page == 1):
|
||||||
total = bundle_dict.get('total')
|
total = bundle_dict.get('total')
|
||||||
if total == None:
|
if total is None:
|
||||||
total = 0
|
total = 0
|
||||||
logging.info(f"Found {total} resources")
|
logging.info(f"Found {total} resources")
|
||||||
|
|
||||||
|
progressbar_total = total
|
||||||
|
if limit > 0:
|
||||||
if limit < total:
|
if limit < total:
|
||||||
progressbar_total = limit
|
progressbar_total = limit
|
||||||
else:
|
|
||||||
progressbar_total = total
|
|
||||||
|
|
||||||
progress_bar = tqdm(total=progressbar_total, desc="Validating")
|
progress_bar = tqdm(total=progressbar_total, desc="Validating")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user