mirror of
https://github.com/pretix/pretix.git
synced 2025-12-05 21:32:28 +00:00
Fix waiting list widgets with infinite quotas
This commit is contained in:
@@ -128,7 +128,10 @@ def waitinglist_widgets(sender, subevent=None, **kwargs):
|
||||
else wle.item.check_quotas(subevent=wle.subevent, count_waitinglist=False, _cache=quota_cache)
|
||||
)
|
||||
row = itemvar_cache.get((wle.item, wle.variation))
|
||||
if row[1] > 0:
|
||||
if row[1] is None:
|
||||
itemvar_cache[(wle.item, wle.variation)] = (row[0], row[1])
|
||||
happy += 1
|
||||
elif row[1] > 0:
|
||||
itemvar_cache[(wle.item, wle.variation)] = (row[0], row[1] - 1)
|
||||
happy += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user