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
  • Loading branch information
lme-nca committed Nov 15, 2023
1 parent e7cb653 commit 654ca43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dojo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2576,8 +2576,7 @@ def get_open_findings_burndown(product):
info_count += 1

if f.is_mitigated:
f_mitigated_date = datetime.combine(f.mitigated.timestamp(), datetime.min.time()).timestamp()
print("f_mitigated_date: " + str(f_mitigated_date))
f_mitigated_date = f.mitigated.timestamp()
if f_mitigated_date >= d_start and f_mitigated_date < d_end:
if f.severity == 'Critical':
critical_count -= 1
Expand All @@ -2591,7 +2590,7 @@ def get_open_findings_burndown(product):
info_count -= 1

elif f.risk_accepted:
f_risk_accepted = datetime.combine(f.risk_accepted.created().timestamp(), datetime.min.time()).timestamp()
f_risk_accepted = f.risk_accepted.created().timestamp()
print("f_risk_accepted: " + str(f_risk_accepted))
if f_risk_accepted >= d_start and f_risk_accepted < d_end:
if f.severity == 'Critical':
Expand Down

0 comments on commit 654ca43

Please sign in to comment.