forked from CGM_Public/pretix_original
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)
|
else wle.item.check_quotas(subevent=wle.subevent, count_waitinglist=False, _cache=quota_cache)
|
||||||
)
|
)
|
||||||
row = itemvar_cache.get((wle.item, wle.variation))
|
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)
|
itemvar_cache[(wle.item, wle.variation)] = (row[0], row[1] - 1)
|
||||||
happy += 1
|
happy += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user