Skip to content

Commit

Permalink
fixed filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNyl committed Dec 14, 2023
1 parent 250a995 commit b9af21f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/content/views/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def _list_queryset(self):
.filter(~Q(category=category))
.order_by("-start_date")
)
return self.queryset.filter(~Q(category=category))
return self.queryset.filter(end_date__gte=time).filter(
~Q(category=category)
)

return self.queryset.filter(end_date__gte=time)

Expand Down

0 comments on commit b9af21f

Please sign in to comment.