diff --git a/frontend/scripts/home.js b/frontend/scripts/home.js index b91ee24..074f1d1 100644 --- a/frontend/scripts/home.js +++ b/frontend/scripts/home.js @@ -42,6 +42,9 @@ function buildTable(data) { data.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()); + // TODO allow showing more than 50 by e.g. clicking + data = data.slice(0, 50); + data.forEach((log) => { var averageTemp = (log.tempHigh + log.tempLow) / 2.0; var color;