From c428a4a989173438c51404190ecb44eb35bde9c6 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Wed, 3 Sep 2025 11:53:59 -0400 Subject: [PATCH] Minor Changes to Quality of Life Update --- utils/allowlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/allowlist.py b/utils/allowlist.py index 2d0f621..b087877 100644 --- a/utils/allowlist.py +++ b/utils/allowlist.py @@ -35,7 +35,7 @@ def pullPolicyExechistories(url, policiesnames, days, outputjson: bool): headers = {"X-APIKey": os.getenv('APIKEY')} checkpoint = str(skipback(days)) json_output = {'error': 'Success', 'response': {'exechistories': []}} - with tqdm.tqdm(total=100, desc="Total Percentage Complete: ") as pbar: + with tqdm.tqdm(total=100, desc=f"Total of {policiesnames} Complete: ") as pbar: while True: json_response_data = checkpoint_stomper(checkpoint, url, policiesnames, headers) histories = json_response_data['response']['exechistories'] @@ -73,7 +73,7 @@ def pullPolicyExechistories(url, policiesnames, days, outputjson: bool): date_diff = datetime.date.today() - datetime.datetime.strptime(item['datetime'].replace(' +0000 UTC', ''), '%Y-%m-%dT%H:%M:%SZ').date() percentage_diff = ((days - date_diff.days) / 60) * 100 pbar.n = round(percentage_diff) - pbar.set_description_str(f"Total Percentage Complete: ({percentage_diff:.1f}%)") + pbar.set_description_str(f"Total of {policiesnames} Complete: ({percentage_diff:.1f}%)") pbar.refresh with open(file_path, 'r') as file: final_output = json.load(file)