Skip to content

Commit

Permalink
Fix crash PRETIXEU-9FC
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Nov 30, 2023
1 parent bd14be4 commit 6c47980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/control/views/waitinglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def get_context_data(self, **kwargs):
free_seats = num_free_seats_for_product - num_valid_vouchers_for_product
wle.availability = (
Quota.AVAILABILITY_GONE if free_seats == 0 else wle.availability[0],
min(free_seats, wle.availability[1])
min(free_seats, wle.availability[1]) if wle.availability[1] is not None else free_seats,
)

itemvar_cache[(wle.item, wle.variation, wle.subevent)] = wle.availability
Expand Down

0 comments on commit 6c47980

Please sign in to comment.