Skip to content

Commit

Permalink
Remove extra query
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Oct 10, 2024
1 parent f05917b commit 6fb5368
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5186,7 +5186,6 @@ def cart(self, request, *args, **kwargs):
buyable=True, # should not be triggered as buyable is by ticket class
owner__isnull=True,
holder__isnull=True,
event__end_time__gte=now,
).exclude(id__in=tickets_in_cart)[: ticket_class["count"]]

num_short = ticket_class["count"] - available_tickets.count()
Expand Down

0 comments on commit 6fb5368

Please sign in to comment.