diff options
| author | J08nY | 2023-01-09 17:21:37 +0100 |
|---|---|---|
| committer | J08nY | 2023-01-09 17:21:37 +0100 |
| commit | 579ed2ea48f1a8e96d5fd34443ca55382c3e1a78 (patch) | |
| tree | 6588c41ffcbdfc082d4d2165dc28aa55fce5675a /src | |
| parent | 7fcfecda49bd0a7a0000f3272b3e89bacb8f76bf (diff) | |
| download | sec-certs-579ed2ea48f1a8e96d5fd34443ca55382c3e1a78.tar.gz sec-certs-579ed2ea48f1a8e96d5fd34443ca55382c3e1a78.tar.zst sec-certs-579ed2ea48f1a8e96d5fd34443ca55382c3e1a78.zip | |
Fix #304.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sec_certs/sample/fips_iut.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sec_certs/sample/fips_iut.py b/src/sec_certs/sample/fips_iut.py index cb521ee4..968ee3fc 100644 --- a/src/sec_certs/sample/fips_iut.py +++ b/src/sec_certs/sample/fips_iut.py @@ -85,10 +85,11 @@ class IUTSnapshot(ComplexSerializableType): last_updated_elem = next( filter( - lambda e: isinstance(e, Tag) and e.name == "p", + lambda e: isinstance(e, Tag) and e.name == "p" and "Last Updated" in str(e.string), soup.find(id="content").next_siblings, ) ) + last_updated_text = str(last_updated_elem.string).strip() last_updated = datetime.strptime(last_updated_text, "Last Updated: %m/%d/%Y").date() table = tables[0].find("tbody") |
