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)
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)
def donut_chart(): table = calldata.web_select_overall() uniques = utils.get_unique(table) return render_template("donut_chart.html", table=table, uniques=uniques)
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)