From 710382ce61d6d45b837c616eda588299723cc3fa Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 28 Aug 2025 11:33:51 -0400 Subject: [PATCH] Limited Allowlist selection --- utils/allowlist.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/utils/allowlist.py b/utils/allowlist.py index 68ffe80..328c41b 100644 --- a/utils/allowlist.py +++ b/utils/allowlist.py @@ -108,9 +108,10 @@ def listAllowlists(url): policiesnames = [] policyids = [] for index, list in enumerate(parse_text['response']['applications'], start=1): - print(ct.colorText(f"{index}. {list['name']}", "yellow")) - policiesnames.append(list['name']) - policyids.append(list['applicationid']) + if index >= 38: + print(ct.colorText(f"{index}. {list['name']}", "yellow")) + policiesnames.append(list['name']) + policyids.append(list['applicationid']) choice = int(input(ct.colorText("Select allowlist: ", "white"))) if choice < 38: print(ct.colorText("Please only choose an allowlist designed for this use - '38+'","red")) @@ -142,8 +143,3 @@ def listCategories(url): return choice, policiesnames - - -else: - print(ct.colorText("Please choose only 38 or Aboove", "red")) - \ No newline at end of file