mirror of
https://github.com/pretix/pretix.git
synced 2026-08-23 12:51:59 +00:00
remove some print() logging
This commit is contained in:
@@ -48,14 +48,9 @@ class TimeMachineMiddleware:
|
|||||||
if hasattr(request, 'event') and hasattr(request, '_namespace') and request._namespace == 'presale' and \
|
if hasattr(request, 'event') and hasattr(request, '_namespace') and request._namespace == 'presale' and \
|
||||||
'timemachine_now_dt' in request.session and \
|
'timemachine_now_dt' in request.session and \
|
||||||
request.user.has_event_permission(request.organizer, request.event, 'can_change_event_settings', request):
|
request.user.has_event_permission(request.organizer, request.event, 'can_change_event_settings', request):
|
||||||
print("setting now_dt from cookie")
|
|
||||||
request.now_dt = parse(request.session['timemachine_now_dt'])
|
request.now_dt = parse(request.session['timemachine_now_dt'])
|
||||||
request.now_dt_is_fake = True
|
request.now_dt_is_fake = True
|
||||||
else:
|
else:
|
||||||
print("setting now_dt to now",
|
|
||||||
"hasevent?",hasattr(request, 'event') ,
|
|
||||||
"namespace?",hasattr(request, '_namespace') and request._namespace,
|
|
||||||
"cookies?",request.session)
|
|
||||||
request.now_dt = now()
|
request.now_dt = now()
|
||||||
request.now_dt_is_fake = False
|
request.now_dt_is_fake = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user