Remove empty whitespace lines

This commit is contained in:
Tanner
2026-08-25 18:17:45 +00:00
parent bcddadf5b9
commit 1931b48c68
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -679,10 +679,10 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura
try {
const api_key = localStorage.getItem('api_key', 'null');
const params = { end: end.unix(), duration: duration.len.toLowerCase(), window: duration.win, api_key: api_key };
const names = sensors.join(',');
const res = await axios.get(`https://sensors-api.dns.t0.vc/history/${measurement}/${names}`, { params });
const formattedData = res.data.map(d => {
const newObj = { time: d.time };
sensors.forEach(sensor => {
@@ -690,7 +690,7 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura
});
return newObj;
});
setData(formattedData);
setLoading(false);
} catch (error) {
+2 -2
View File
@@ -556,12 +556,12 @@ async def history(request):
q += ' tz(\'America/Edmonton\')'
points = list(client.query(q).get_points())
for p in points:
t = p['time']
if t not in time_map:
time_map[t] = {'time': t}
if len(names) > 1:
for k, v in p.items():
if k != 'time':