예제 #1
0
def metric(metric_name=''):
    graph = Graph([
        metric_name,
    ])
    graph.day_graph_need_shift = True
    graph.auto_refresh = True
    body = template('templates/graph', **locals())
    return render_page(body)
예제 #2
0
파일: app.py 프로젝트: douban/graph-index
def metric(metric_name = ''):
    graph = Graph([metric_name, ])
    graph.day_graph_need_shift = True
    graph.auto_refresh = True
    body = template('templates/graph', **locals())
    return render_page(body)