Skip to content

Commit

Permalink
make sure we only count submissions for current event
Browse files Browse the repository at this point in the history
  • Loading branch information
fkusei committed Sep 3, 2024
1 parent 56b5b0a commit e160671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretalx_halfnarp/views/organiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class OrganiserView(EventPermissionRequired, FormView):

@context
def num_preferences(self):
return Preference.objects.count()
return Preference.objects.filter(event=self.request.event).count()

@context
def most_preferred_submissions(self):
Expand Down

0 comments on commit e160671

Please sign in to comment.