mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fixed a bug in quota locking
This commit is contained in:
@@ -97,7 +97,7 @@ def check_positions(event, dt, positions, quotas_locked):
|
||||
for quota in quotas:
|
||||
# Lock the quota, so no other thread is allowed to perform sales covered by this
|
||||
# quota while we're doing so.
|
||||
if quota not in quotas_locked:
|
||||
if quota.identity not in [q.identity for q in quotas_locked]:
|
||||
quota.lock()
|
||||
quotas_locked.add(quota)
|
||||
avail = quota.availability()
|
||||
|
||||
Reference in New Issue
Block a user