Limited Allowlist selection
This commit is contained in:
+4
-8
@@ -108,9 +108,10 @@ def listAllowlists(url):
|
|||||||
policiesnames = []
|
policiesnames = []
|
||||||
policyids = []
|
policyids = []
|
||||||
for index, list in enumerate(parse_text['response']['applications'], start=1):
|
for index, list in enumerate(parse_text['response']['applications'], start=1):
|
||||||
print(ct.colorText(f"{index}. {list['name']}", "yellow"))
|
if index >= 38:
|
||||||
policiesnames.append(list['name'])
|
print(ct.colorText(f"{index}. {list['name']}", "yellow"))
|
||||||
policyids.append(list['applicationid'])
|
policiesnames.append(list['name'])
|
||||||
|
policyids.append(list['applicationid'])
|
||||||
choice = int(input(ct.colorText("Select allowlist: ", "white")))
|
choice = int(input(ct.colorText("Select allowlist: ", "white")))
|
||||||
if choice < 38:
|
if choice < 38:
|
||||||
print(ct.colorText("Please only choose an allowlist designed for this use - '38+'","red"))
|
print(ct.colorText("Please only choose an allowlist designed for this use - '38+'","red"))
|
||||||
@@ -142,8 +143,3 @@ def listCategories(url):
|
|||||||
return choice, policiesnames
|
return choice, policiesnames
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else:
|
|
||||||
print(ct.colorText("Please choose only 38 or Aboove", "red"))
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user