Skip to content

Commit

Permalink
As instructed by @hmpf
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Jan 31, 2024
1 parent 58ceeb2 commit 1965128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/notificationprofile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def incidents_fitting_maxlevel(self, data=None):
maxlevel = data.pop("maxlevel", None)
if not maxlevel:
return self.all_incidents.distinct()
return self.all_incidents.filter(level__lte=maxlevel)
return self.all_incidents.filter(level__lte=maxlevel).distinct()

def incident_fits(self, incident: Incident):
if self.is_empty:
Expand Down

0 comments on commit 1965128

Please sign in to comment.