Skip to content

Commit

Permalink
Address PR comments, remove duplicate query
Browse files Browse the repository at this point in the history
  • Loading branch information
voneiden committed Aug 8, 2023
1 parent 8f60a93 commit 48c5714
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion events/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,6 @@ def _filter_event_queryset(queryset, params, srs=None): # noqa: C901
queryset = queryset.filter(
Exists(Offer.objects.filter(event=OuterRef("pk"), is_free=True))
)
queryset = queryset.exclude(~Q(offers__is_free=True))
# Include events that have no free offers
elif val.lower() == "false":
queryset = queryset.exclude(offers__is_free=True)
Expand Down

0 comments on commit 48c5714

Please sign in to comment.