Lock event during automatic waiting list assignment

This commit is contained in:
Raphael Michel
2017-10-24 12:47:08 +02:00
parent cb6f6247fd
commit 03dd0e530e

View File

@@ -28,6 +28,7 @@ def assign_automatically(event_id: int, user_id: int=None, subevent_id: int=None
sent = 0 sent = 0
with event.lock():
for wle in qs: for wle in qs:
if (wle.item, wle.variation) in gone: if (wle.item, wle.variation) in gone:
continue continue