示例#1
0
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)
示例#2
0
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)
示例#3
0
文件: main.py 项目: sgrizan/flamenco
def index():
    if check_connection() == 'online':
        return redirect(url_for('jobs.index'))
    else:
        return "[error] Dashboard could not connect to server"
示例#4
0
文件: main.py 项目: CGTAdal/flamenco
def index():
    if check_connection() == 'online':
        return redirect(url_for('jobs.index'))
    else:
        return "[error] Dashboard could not connect to server"