mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
adjust comment about evidence type
This commit is contained in:
parent
5fa6f32644
commit
35b65d0d8d
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue