mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Only call now() once inside any event.lock() call
This commit is contained in:
@@ -19,6 +19,7 @@ class LockManager:
|
||||
|
||||
def __enter__(self):
|
||||
lock_event(self.event)
|
||||
return now()
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
release_event(self.event)
|
||||
|
||||
Reference in New Issue
Block a user