From fa347815ccc6d430b9224fcc7f68a75f13aad867 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 7 Nov 2020 01:35:27 +0100 Subject: [PATCH] Changed endpoints and db queries, chart now shows suggested mins and maxes --- charts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts.html b/charts.html index d9c3e0d..9cd40c2 100644 --- a/charts.html +++ b/charts.html @@ -17,7 +17,7 @@ const co2Color = 'rgb(194,30,30)'; async function getData() { - let urlEndpoint = "/" + "ROOT_URL" + "data/"; + let urlEndpoint = "/" + ROOT_URL + "data/"; const pathname = window.location.pathname; if (pathname.includes("since")) { urlEndpoint += "since/" + pathname.slice(pathname.lastIndexOf("/") + 1);