From c2889677f0dff905aec58d490b949b1d2d4b2250 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 7 Nov 2020 01:29:30 +0100 Subject: [PATCH] Changed endpoints and db queries, chart now shows suggested mins and maxes --- climate-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climate-server.go b/climate-server.go index 8ac1a94..40afed2 100644 --- a/climate-server.go +++ b/climate-server.go @@ -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 }