Waiting list: Do not send notifications for disabled items

This commit is contained in:
Raphael Michel
2020-03-05 09:37:35 +01:00
parent 40f763c999
commit 447b6b7fee

View File

@@ -42,6 +42,8 @@ def assign_automatically(event: Event, user_id: int=None, subevent_id: int=None)
continue
if wle.subevent and not wle.subevent.presale_is_running:
continue
if not wle.item.active or (wle.variation and not wle.variation.active):
continue
quotas = (wle.variation.quotas.filter(subevent=wle.subevent)
if wle.variation