From 13910d36ce84f929174d465e970113f84647ee6c Mon Sep 17 00:00:00 2001 From: Lars Meijers Date: Thu, 16 Nov 2023 16:19:45 +0100 Subject: [PATCH] debugging --- dojo/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dojo/utils.py b/dojo/utils.py index 44fb1b0e395..f70f30fb51d 100644 --- a/dojo/utils.py +++ b/dojo/utils.py @@ -2610,6 +2610,9 @@ def get_open_findings_burndown(product): for i in range(90, -1, -1): start = (curr_date - timedelta(days=i)) + d_start = start.timestamp() + d_end = (start + timedelta(days=1)).timestamp() + print("calculating day " + str(d_start)) print("number of critical_count: " + str(critical_count)) print("number of high_count: " + str(high_count)) @@ -2617,9 +2620,6 @@ def get_open_findings_burndown(product): print("number of low_count: " + str(low_count)) print("number of info_count: " + str(info_count)) - d_start = start.timestamp() - d_end = (start + timedelta(days=1)).timestamp() - for f in f_list: f_open_date = datetime.combine(f.date, datetime.min.time()).timestamp() if f_open_date >= d_start and f_open_date < d_end: