Fix initial range of progress bar if no custom limit

This commit is contained in:
Markus Mandalka 2024-09-30 15:40:42 +02:00
parent 251f344c5b
commit 777719df07

View File

@ -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")