Skip to content

Commit

Permalink
fix: bug with split name and label
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-girard committed Nov 9, 2023
1 parent 5a2a4d9 commit d3475e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ad_miner/sources/modules/users.py
Expand Up @@ -1470,7 +1470,7 @@ def genGroupAnomalyAcl(self, domain):
anomaly_acl_extract = []

for k in range(len(self.anomaly_acl)):
name_label_instance = f"{self.anomaly_acl[k]['g.name']} {self.anomaly_acl[k]['LABELS(g)[0]']}"
name_label_instance = f"{self.anomaly_acl[k]['g.name']}{self.anomaly_acl[k]['LABELS(g)[0]']}"
if formated_data.get(name_label_instance) and formated_data[name_label_instance]["type"] == self.anomaly_acl[k]["type(r2)"] and formated_data[name_label_instance]["label"] == self.anomaly_acl[k]["LABELS(g)[0]"]:
formated_data[name_label_instance]["targets"].append(self.anomaly_acl[k]["n.name"])
elif formated_data.get(name_label_instance) and formated_data[name_label_instance]["targets"] == [self.anomaly_acl[k]["n.name"]] and self.anomaly_acl[k]["type(r2)"] not in formated_data[name_label_instance]["type"] and formated_data[name_label_instance]["label"] == self.anomaly_acl[k]["LABELS(g)[0]"]:
Expand All @@ -1486,7 +1486,7 @@ def genGroupAnomalyAcl(self, domain):
}

for name_label_instance in formated_data:
name_instance = name_label_instance.split(" ")[0]
name_instance = name_label_instance.split(formated_data[name_label_instance]["label"])[0]

formated_data_details = []
interest = 0
Expand Down

0 comments on commit d3475e0

Please sign in to comment.