Exemplo n.º 1
0
def select_records():
    if request.method == 'POST':
        print(request.form)
        python_records = calldata.web_select_specific(request.form)
        return render_template("show_records.html", html_records=python_records)
    else:
        table = calldata.web_select_overall()
        uniques = utils.get_unique(table)
        return render_template("select_records.html", uniques=uniques)
Exemplo n.º 2
0
def select_records_comfortable():
    if request.method == 'POST':
        print(request.form)
        python_records = CallDatabase.web_select_specific(request.form)
        return render_template("show_records.html", html_records=python_records)
    else:
        table = CallDatabase.web_select_overall()
        table = utils.total_seconds(table)
        uniques = utils.get_unique(table)
        return render_template("select_records_comfortable.html", uniques=uniques)
Exemplo n.º 3
0
def donut_chart():
    table = calldata.web_select_overall()
    uniques = utils.get_unique(table)
    return render_template("donut_chart.html", table=table, uniques=uniques)
Exemplo n.º 4
0
def spline_chart():
    table = CallDatabase.web_select_overall()
    table = utils.total_seconds(table)
    uniques = utils.get_unique(table)
    return render_template("spline_chart.html", table=table, uniques=uniques)