This commit is contained in:
Dion Moult
2023-05-26 19:54:26 +10:00
parent d3251c5ca1
commit adec3853e8
+3 -1
View File
@@ -58,6 +58,8 @@ class Facet:
return results
def parse(self, xml):
setattr(self, "minOccurs", 1)
setattr(self, "maxOccurs", 1)
for name, value in xml.items():
name = name.replace("@", "")
if isinstance(value, dict) and "simpleValue" in value.keys():
@@ -893,7 +895,7 @@ class ClassificationResult(Result):
return "The entity has no classification"
elif self.reason["type"] == "VALUE":
return f"The references \"{str(self.reason['actual'])}\" do not match the requirements"
elif self.reason["type"] == "system":
elif self.reason["type"] == "SYSTEM":
return f"The systems \"{str(self.reason['actual'])}\" do not match the requirements"
elif self.reason["type"] == "PROHIBITED":
return f"The classification should not have met the requirement"