Skip to content

Commit

Permalink
fixed the burndown calculation to start with the numnber of findings …
Browse files Browse the repository at this point in the history
…that are still active or will be mitigated/risk-accepted in the next 90 days
  • Loading branch information
lme-nca committed Nov 16, 2023
1 parent 8fd837d commit 9648dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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':
Expand Down

0 comments on commit 9648dd2

Please sign in to comment.