retro css
This commit is contained in:
+6
-2
@@ -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(
|
||||
[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user