From 2b1fd3d467ec6158cc5bf7c61418e230b2dc9bfd Mon Sep 17 00:00:00 2001 From: dogboat Date: Mon, 16 Sep 2024 13:08:55 -0400 Subject: [PATCH] Fix metrics aggregation (#10917) * metrics-aggregate-fix add an order_by() to aggregate_counts_by_period() so aggregation works properly * metrics-aggregate-fix replace single quotes with double quotes * retrigger github actions --- dojo/metrics/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/metrics/utils.py b/dojo/metrics/utils.py index 263b7065f2c..8ca345b41f7 100644 --- a/dojo/metrics/utils.py +++ b/dojo/metrics/utils.py @@ -500,7 +500,7 @@ def aggregate_counts_by_period( ) desired_values += ("closed",) - return severities_by_period.values(*desired_values) + return severities_by_period.order_by("grouped_date").values(*desired_values) def findings_by_product(