Fixed a logic bug

This commit is contained in:
Raphael Michel
2015-06-29 14:21:49 +02:00
parent 765076540a
commit 44beb8e84a
2 changed files with 3 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ def check_positions(event, dt, positions, quotas_locked):
err = err or error_messages['unavailable']
quota_ok = False
break
if quota_ok and not event.presale_end or now() < event.presale_end:
if quota_ok and (not event.presale_end or now() < event.presale_end):
cp = cp.clone()
positions[i] = cp
cp.expires = now() + timedelta(