Evidence category matching is case-insensitive 🟩

This commit is contained in:
Daniel Roth 2026-05-13 16:16:14 +00:00
parent 157a36f0cd
commit 6922ff3e06

View file

@ -87,7 +87,7 @@ class PashubClient:
return None
def _get_core_file_type(self, file: EvidenceFileData) -> Optional[CoreFiles]:
if file.evidence_category == "retrofit design":
if file.evidence_category is not None and file.evidence_category.lower() == "retrofit design":
return CoreFiles.RETROFIT_DESIGN_DOC
for core_file in CoreFiles: