Commit d23037d1 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: before_request reorganized

parent e97d60c9
......@@ -45,10 +45,8 @@ def login_redirect(*args, **kwargs):
@app.before_request
def before_request():
if request.path.startswith('/static'):
return
if request.path == '/isSRReady':
if request.path.startswith('/static') \
or request.path == '/isSRReady':
return
account = getSession(app.config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment