mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
adjust comment about evidence type
This commit is contained in:
parent
1a1804399e
commit
223c1a259b
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(
|
def get_core_file_type(
|
||||||
filename: str, evidence_category: Optional[str] = None
|
filename: str, evidence_category: Optional[str] = None
|
||||||
) -> Optional[CoreFiles]:
|
) -> 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
|
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":
|
if evidence_category is not None and evidence_category.lower() == "retrofit design":
|
||||||
return CoreFiles.RETROFIT_DESIGN_DOC
|
return CoreFiles.RETROFIT_DESIGN_DOC
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue