Skip to content
Extraits de code Groupes Projets
Valider 4c06b437 rédigé par Julien - Le Filament's avatar Julien - Le Filament
Parcourir les fichiers

add api handler

parent fd902a3b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -71,7 +71,7 @@ class RepartitionKeyEntryFile: ...@@ -71,7 +71,7 @@ class RepartitionKeyEntryFile:
call_list = [] call_list = []
for horo in self.json: for horo in self.json:
date = datetime.strptime(horo, "%d-%m-%Y %H:%M") date = datetime.strptime(horo, "%d-%m-%Y %H:%M")
route = f"/agreements/{agreement_id}/repartition_keys/{date.strftime('%Y%m%dT%H%MZ')}" route = f"{agreement_id}/repartition_keys/{date.strftime('%Y%m%dT%H%MZ')}"
body = [] body = []
# specification enedis si la somme des clefs est nulle on envoi un body vide # specification enedis si la somme des clefs est nulle on envoi un body vide
if self._get_key_sum(self.json.get(horo)) > 0: if self._get_key_sum(self.json.get(horo)) > 0:
......
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