From 35b65d0d8d0a95ae0c3e42129da4c60b5c94feab Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 2 Jun 2026 14:32:13 +0000 Subject: [PATCH] adjust comment about evidence type --- backend/pashub_fetcher/core_files.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/pashub_fetcher/core_files.py b/backend/pashub_fetcher/core_files.py index 1717c108..00129954 100644 --- a/backend/pashub_fetcher/core_files.py +++ b/backend/pashub_fetcher/core_files.py @@ -40,11 +40,14 @@ _CORE_FILE_TO_FILE_TYPE: dict[CoreFiles, str] = { def get_core_file_type( filename: str, evidence_category: Optional[str] = None ) -> Optional[CoreFiles]: - if evidence_category is not None and evidence_category.lower() == "mcs compliance certificate": + # Identify MCS certificate and design doc using evidence category as the names are possibly unreliable. + # We might change to always use evidence category, but needs more investigation + if ( + evidence_category is not None + and evidence_category.lower() == "mcs compliance certificate" + ): return CoreFiles.MCS_CERTIFICATE - # Identify retrofit design doc using evidence category as the name is possibly unreliable. - # We might change to always use evidence category, but needs more investigation if evidence_category is not None and evidence_category.lower() == "retrofit design": return CoreFiles.RETROFIT_DESIGN_DOC