Skip to content
Extraits de code Groupes Projets
Valider e4a8d3f5 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[FIX]Bug on date no dispo in app

parent 34c92595
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -100,7 +100,7 @@ class OperationsService(Component): ...@@ -100,7 +100,7 @@ class OperationsService(Component):
cons_rate = round((power_tot[2] / power_tot[1]) * 100, 2) cons_rate = round((power_tot[2] / power_tot[1]) * 100, 2)
prod_rate = round((power_tot[2] / power_tot[0]) * 100, 2) prod_rate = round((power_tot[2] / power_tot[0]) * 100, 2)
except Exception: except Exception:
power_tot = (0, 0) power_tot = (0, 0, 0, None)
cons_rate = prod_rate = 0 cons_rate = prod_rate = 0
nb_conso = ( nb_conso = (
...@@ -709,7 +709,7 @@ class OperationsService(Component): ...@@ -709,7 +709,7 @@ class OperationsService(Component):
"image": {"type": "string", "nullable": True}, "image": {"type": "string", "nullable": True},
"conso_tot": {"type": "float"}, "conso_tot": {"type": "float"},
"prod_tot": {"type": "float"}, "prod_tot": {"type": "float"},
"month": {"type": "date"}, "month": {"type": "date", "nullable": True},
"conso_rate": {"type": "float"}, "conso_rate": {"type": "float"},
"prod_rate": {"type": "float"}, "prod_rate": {"type": "float"},
"news": { "news": {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter