Skip to content

Commit

Permalink
fix: nvd datafeed should process current year (#6213)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Dec 4, 2023
1 parent 629adb8 commit c611186
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ protected final Map<String, String> getUpdatesNeeded(String url, String filePatt
} else {
updates.put("modified", url + MessageFormat.format(filePattern, "modified"));
if (needsFullUpdate) {
for (int i = startYear; i < endYear; i++) {
for (int i = startYear; i <= endYear; i++) {
if (cacheProperties.containsKey(NVD_API_CACHE_MODIFIED_DATE + "." + i)) {
updates.put(String.valueOf(i), url + MessageFormat.format(filePattern, String.valueOf(i)));
}
Expand Down

0 comments on commit c611186

Please sign in to comment.