def status(): try: server_status = check_connection() server_stats = http_server_request('get', '/stats') except: server_status = 'offline' server_stats = '' return render_template('settings/status.html', title='server status', server_stats=server_stats, server_status=server_status)
def index(): if check_connection() == 'online': return redirect(url_for('jobs.index')) else: return "[error] Dashboard could not connect to server"