From c6000c334229405f1d5c8ba4a964308008ce1300 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 19 Sep 2024 14:54:14 +0200 Subject: [PATCH] Fix NVD api download. They changed the parameter names: https://nvd.nist.gov/developers/vulnerabilities#:~:text=lastModStartDate%20%26%20lastModEndDate --- src/sec_certs/utils/nvd_dataset_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sec_certs/utils/nvd_dataset_builder.py b/src/sec_certs/utils/nvd_dataset_builder.py index 55132339..08f65d30 100644 --- a/src/sec_certs/utils/nvd_dataset_builder.py +++ b/src/sec_certs/utils/nvd_dataset_builder.py @@ -111,8 +111,8 @@ def base_params(self) -> dict[str, Any]: dct = {"resultsPerPage": self._RESULTS_PER_PAGE} if self._start_mod_date and self._end_mod_date: - dct["startModDate"] = self._start_mod_date.isoformat() - dct["endModDate"] = self._end_mod_date.isoformat() + dct["lastModStartDate"] = self._start_mod_date.isoformat() + dct["lastModEndDate"] = self._end_mod_date.isoformat() return dct