From 0e0e78b92cabff405c67b4cc34347ad312d23de3 Mon Sep 17 00:00:00 2001 From: jc0b Date: Fri, 19 Jul 2024 20:52:06 +0200 Subject: [PATCH] Fixed bug where having multiple CVEs with the same base score would cause an error --- nudge-auto-updater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nudge-auto-updater.py b/nudge-auto-updater.py index 1609862..04c704c 100755 --- a/nudge-auto-updater.py +++ b/nudge-auto-updater.py @@ -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) @@ -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":