SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 68d9279d authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix(graphs): :bug: remove null aggragation filter

Fixes incorrect count of groups due to multi-exclusion query
parent c3118a23
No related branches found
No related tags found
No related merge requests found
......@@ -442,7 +442,7 @@ class BarPlot(PlotKind):
self.plotter.get_queryset()
.values(group_key)
.annotate(agg=agg_func)
.exclude(Q(**{group_key: None}) | Q(agg=None))
.exclude(**{group_key: None})
)
if (order_by := self.options.get("order_by")) and (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment