Changed endpoints and db queries, chart now shows suggested mins and maxes

This commit is contained in:
Daniel Ledda
2020-11-07 01:24:26 +01:00
parent 5bc1a61051
commit 4b1cd81be4

View File

@@ -52,9 +52,8 @@ func showCharts(w http.ResponseWriter, r *http.Request) {
if _, err := strconv.ParseInt(countStr, 10, 0); err != nil {
http.Redirect(w, r, "/", 303)
}
} else {
http.ServeFile(w, r, "charts.html")
}
http.ServeFile(w, r, "charts.html")
}
func sendData(w http.ResponseWriter, r *http.Request) {