Skip to content

Commit

Permalink
Try to match occurrence count in chart to other stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow authored and Debian committed Feb 3, 2024
1 parent 9e6bb42 commit 67b7bd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ami/main/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def occurrences_accumulated(project_pk: int):
occurrences_per_day = (
Occurrence.objects.filter(project=project_pk)
.values_list("event__start")
.exclude(event=None)
.exclude(event__start=None)
.exclude(detections=None)
.annotate(num_occurrences=models.Count("id"))
.order_by("event__start")
)
Expand Down

0 comments on commit 67b7bd0

Please sign in to comment.