Calculation fix for unlimited Quota w/ Waitinglist

This commit is contained in:
Martin Gross
2020-03-11 16:48:57 +01:00
parent 1ee48a10b5
commit b664222c62

View File

@@ -167,7 +167,8 @@ def waitinglist_widgets(sender, subevent=None, lazy=False, **kwargs):
elif row[1] > 0:
happy += 1
for q in quotas:
quota_cache[q.pk] = (quota_cache[q.pk][0], quota_cache[q.pk][1] - 1)
if q.size is not None:
quota_cache[q.pk] = (quota_cache[q.pk][0], quota_cache[q.pk][1] - 1)
widgets.append({
'content': None if lazy else NUM_WIDGET.format(