retro css

This commit is contained in:
2026-10-23 11:37:55 +02:00
parent 02f3df8c41
commit 6a782c1e9b
6 changed files with 78 additions and 15 deletions
+6 -2
View File
@@ -168,8 +168,12 @@ def create_app():
if type_:
query = query.filter(SensorReadout.type == type_)
rows = query.order_by(SensorReadout.timestamp).all()
# Zakresy today i 24h: wszystkie pomiary jako punkty, bez uśredniania.
if range_ in ("today", "24h"):
# Zakresy today i 24h domyślnie zwracają wszystkie pomiary bez
# uśredniania; checkbox "hourly average" wymusza średnie godzinowe.
averaged = range_ not in ("today", "24h") or request.args.get(
"avg", "0"
).lower() in ("1", "true", "yes")
if not averaged:
return jsonify(
[
{