Skip to content

Commit

Permalink
Fixed bug where having multiple CVEs with the same base score would c…
Browse files Browse the repository at this point in the history
…ause an error
  • Loading branch information
jc0b committed Jul 19, 2024
1 parent 0ba286d commit 0e0e78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nudge-auto-updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def check_cve_scores(conditions, cves, name, days, conjunction, found=False):
for cve in cves:
l.append(cves[cve][score])
if cves[cve][score] in d:
d[cves[cve][score]] = d[cves[cve][score]].append(cve)
d[cves[cve][score]].append(cve)
else:
d[cves[cve][score]] = [cve]
l.sort(reverse=True)
Expand Down Expand Up @@ -575,7 +575,7 @@ def check_formula_condition(formula, cves):
formula_result = read_formula(formula["formula"], cve, cves[cve])
l.append(formula_result)
if formula_result in d:
d[formula_result] = d[formula_result].append(cve)
d[formula_result].append(cve)
else:
d[formula_result] = [cve]
if formula["comparison"] == "average":
Expand Down

0 comments on commit 0e0e78b

Please sign in to comment.