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")
|
||||||
|
|
||||||
if limit < total:
|
progressbar_total = total
|
||||||
progressbar_total = limit
|
if limit > 0:
|
||||||
else:
|
if limit < total:
|
||||||
progressbar_total = total
|
progressbar_total = limit
|
||||||
|
|
||||||
progress_bar = tqdm(total=progressbar_total, desc="Validating")
|
progress_bar = tqdm(total=progressbar_total, desc="Validating")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user