Skip to content

Commit

Permalink
Reinsert comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Oct 10, 2024
1 parent f628329 commit 14e0a50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5165,6 +5165,7 @@ def cart(self, request, *args, **kwargs):
for ticket_class in tickets_to_replace.values(
"type", "event", "event__name", "event__end_time"
).annotate(count=Count("id")):
# we don't need to lock, since we aren't updating holder/owner
if ticket_class["event__end_time"] < now:
# Event has elapsed, mark all tickets as sold out
sold_out_tickets.append(
Expand Down

0 comments on commit 14e0a50

Please sign in to comment.