コード例 #1
0
ファイル: app_core.py プロジェクト: djhungtim/coffeetim
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)
コード例 #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)
コード例 #3
0
ファイル: app_core.py プロジェクト: djhungtim/coffeetim
def donut_chart():
    table = calldata.web_select_overall()
    uniques = utils.get_unique(table)
    return render_template("donut_chart.html", table=table, uniques=uniques)
コード例 #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)