def home_post(): startdate = request.form["startdate"] enddate = request.form["enddate"] result = query_stats(startdate, enddate) return render_template("index.html", stats=result)
def home(): result = query_stats("2013-08-01", "2013-08-02") return render_template("index.html", stats=result)