Changed endpoints and db queries, chart now shows suggested mins and maxes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user