Skip to content

Commit

Permalink
Fix metrics aggregation (#10917)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dogboat authored Sep 16, 2024
1 parent 0da81c6 commit 2b1fd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/metrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2b1fd3d

Please sign in to comment.