Limit table to 50 rows

This commit is contained in:
Reimar 2025-04-01 12:50:19 +02:00
parent 9c35f257c5
commit 82efeff40b
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -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;