diff options
| author | J08nY | 2024-11-04 22:22:44 +0100 |
|---|---|---|
| committer | J08nY | 2024-11-04 22:22:44 +0100 |
| commit | 28cf5d3f54949d4b314fa194bf9125f236839c7b (patch) | |
| tree | f8c9a7d69697aa3c1bafdabb81260f07e551cd51 /src/sec_certs/sample | |
| parent | e303b6f131f05f4ca700edd6d4241c0d660d0b86 (diff) | |
| download | sec-certs-28cf5d3f54949d4b314fa194bf9125f236839c7b.tar.gz sec-certs-28cf5d3f54949d4b314fa194bf9125f236839c7b.tar.zst sec-certs-28cf5d3f54949d4b314fa194bf9125f236839c7b.zip | |
Improve ANSSI cert_id extraction from scheme site.
Diffstat (limited to 'src/sec_certs/sample')
| -rw-r--r-- | src/sec_certs/sample/cc_scheme.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sec_certs/sample/cc_scheme.py b/src/sec_certs/sample/cc_scheme.py index 4c46d67e..f02b521b 100644 --- a/src/sec_certs/sample/cc_scheme.py +++ b/src/sec_certs/sample/cc_scheme.py @@ -296,7 +296,7 @@ def _get_france(url, enhanced, artifacts, name) -> list[dict[str, Any]]: # noqa elif "Développeur" in label: cert["developer"] = value elif "Référence du certificat" in label: - cert["cert_id"] = value + cert["cert_id"] = value if not value or value.startswith("ANSSI") else "ANSSI-CC" + value elif "Niveau" in label: cert["level"] = value elif "Date de fin de validité" in label: @@ -309,7 +309,7 @@ def _get_france(url, enhanced, artifacts, name) -> list[dict[str, Any]]: # noqa label = tr.find("th").text value = sns(tr.find("td").text) if "Référence du certificat" in label: - e["cert_id"] = value + e["cert_id"] = value if not value or value.startswith("ANSSI") else "ANSSI-CC-" + value elif "Date de certification" in label: e["certification_date"] = value elif "Date de fin de validité" in label: |
