From 9648dd234e6015e6e4b567ac0b003da629606187 Mon Sep 17 00:00:00 2001 From: Lars Meijers Date: Thu, 16 Nov 2023 14:11:48 +0100 Subject: [PATCH] fixed the burndown calculation to start with the numnber of findings that are still active or will be mitigated/risk-accepted in the next 90 days --- dojo/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/utils.py b/dojo/utils.py index 7b5436efd7..b3d63c7e39 100644 --- a/dojo/utils.py +++ b/dojo/utils.py @@ -2562,7 +2562,7 @@ def get_open_findings_burndown(product): info_count += 1 elif f.is_mitigated: f_mitigated_date = f.mitigated.timestamp() - if f_mitigated_date >= start_date and f_mitigated_date < curr_date: + if f_mitigated_date >= start_date.timestamp() and f_mitigated_date < curr_date: if f.severity == 'Critical': critical_count += 1 if f.severity == 'High': @@ -2576,7 +2576,7 @@ def get_open_findings_burndown(product): elif f.risk_accepted: f_risk_accepted_date = f.risk_acceptance.created.timestamp() print("f_risk_accepted for findings older than 90 days: " + str(f_risk_accepted_date)) - if f_risk_accepted_date >= start_date and f_risk_accepted_date < curr_date: + if f_risk_accepted_date >= start_date.timestamp() and f_risk_accepted_date < curr_date: if f.severity == 'Critical': critical_count += 1 if f.severity == 'High':