From 34c92595def76cbb74a35cd9c14551da1a59b235 Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Wed, 17 May 2023 19:02:42 +0200 Subject: [PATCH] [UPD]Display month on home page --- services/operation_services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/operation_services.py b/services/operation_services.py index 9e72a95..c8f27a2 100644 --- a/services/operation_services.py +++ b/services/operation_services.py @@ -147,6 +147,7 @@ class OperationsService(Component): else None, "conso_tot": power_tot[0], "prod_tot": power_tot[1], + "month": power_tot[3], "conso_rate": cons_rate, "prod_rate": prod_rate, } @@ -708,6 +709,7 @@ class OperationsService(Component): "image": {"type": "string", "nullable": True}, "conso_tot": {"type": "float"}, "prod_tot": {"type": "float"}, + "month": {"type": "date"}, "conso_rate": {"type": "float"}, "prod_rate": {"type": "float"}, "news": { -- GitLab