From 34f0dda210a9b24c5c3d46550f75af3bac66e40c Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:53:47 +0200 Subject: [PATCH] Qconso computation corrected --- main.py | 4 +--- templates/control.html | 19 +++++-------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/main.py b/main.py index abe2edc..f9dcbba 100644 --- a/main.py +++ b/main.py @@ -110,9 +110,7 @@ def format_DS_data(data): "TankLevel": np.round(data.get("TankLevel", 0.0), 2), "Qinlet": np.round(data.get("Inlet_flow", 0.0), 1), "Qoutlet": np.round(data.get("Outlet_flow", 0.0), 1), - "Q_conso_filt": np.round(data.get("Qdrain_sp", 0.0), 1), - "Q_conso_filt": np.round(data.get("Qdrain_sp", 0.0), 1), - "Q_conso_filt": np.round(data.get("Qdrain_sp", 0.0), 1), + "Q_conso": np.round(data.get("Inlet_flow", 0.0), 1) - np.round(data.get("Outlet_flow", 0.0), 1), } diff --git a/templates/control.html b/templates/control.html index b1df70a..a0440a4 100644 --- a/templates/control.html +++ b/templates/control.html @@ -339,20 +339,20 @@