I think we got it

This commit is contained in:
=
2025-09-01 21:59:38 -04:00
parent 7cb32d14cc
commit aa05dd0564
12 changed files with 72 additions and 52 deletions
+5 -3
View File
@@ -288,7 +288,7 @@ def menu_prepare_to_enforce():
print(choice)
print(first_policy)
exe1 = utils.allowlist.pullPolicyExechistories(url, choice, first_policy, True)
exe1 = utils.allowlist.pullPolicyExechistories(url, first_policy, 60, True)
data = json.loads(exe1)
executionhist_policy1 = pd.DataFrame(data["response"]["exechistories"])
@@ -299,12 +299,13 @@ def menu_prepare_to_enforce():
executionhist_policy1.to_parquet(f"parquet\\execution_history_{first_policy}.parquet", index=False)
print(ct.colorText(f"Staging of Execution history for policy: {first_policy} is complete", "green"))
del exe1
del executionhist_policy1
gc.collect()
if not os.path.exists(f"parquet\\execution_history_{second_policy}.parquet"):
exe2 = utils.allowlist.pullPolicyExechistories(url, choice, second_policy, True)
exe2 = utils.allowlist.pullPolicyExechistories(url,second_policy, 60, True)
data2 = json.loads(exe2)
executionhist_policy2 = pd.DataFrame(data2["response"]["exechistories"])
@@ -317,6 +318,7 @@ def menu_prepare_to_enforce():
print(ct.colorText(f"Staging of Execution history for policy: {second_policy} is complete", "green"))
del executionhist_policy2
del exe2
gc.collect()
if not os.path.exists(f"parquet\\combined_hashlist_{first_policy}_{second_policy}.parquet"):