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

This commit is contained in:
Daniel Ledda
2020-11-07 01:29:30 +01:00
parent c60ed18507
commit c2889677f0

View File

@@ -61,7 +61,7 @@ func sendData(w http.ResponseWriter, r *http.Request) {
if vars := mux.Vars(r); vars["mins"] != "" {
newCount, err := strconv.ParseInt(vars["mins"], 10, 0)
if err != nil {
http.Redirect(w, r, ROOT_URL + "/", 303)
http.Redirect(w, r, "/" + ROOT_URL + "/", 303)
}
count = newCount
}