Skip to content
Snippets Groups Projects
Commit 506d8ef5 authored by Olivier Amrein's avatar Olivier Amrein
Browse files

adding a check to dashboard if server is not connected

parent c758f568
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,10 @@ app.config.update( ...@@ -28,7 +28,10 @@ app.config.update(
@app.route('/') @app.route('/')
def index(): def index():
return redirect(url_for('workers')) if check_connection(BRENDER_SERVER) == 'online':
return redirect(url_for('workers'))
else:
return "[error] Dashboard could not connect to server"
@app.route('/workers/') @app.route('/workers/')
def workers(): def workers():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment