From d0cafccf2bbc4d99a62272fdacdad2fda23feb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Thu, 11 Jan 2024 17:58:57 +0100 Subject: [PATCH] [FIX] extra characters removed --- models/acc_operation.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/models/acc_operation.py b/models/acc_operation.py index 23a3f22..cb38189 100644 --- a/models/acc_operation.py +++ b/models/acc_operation.py @@ -131,9 +131,13 @@ class AccOperation(models.Model): "Opération: " + self.name + " - PRM: " - + usage_point_id.name + " - aucune période trouvée du " + str(start_date) - + " au " - + str(end_date) + "<br/>"") + + usage_point_id.name + + " - aucune période trouvée du " + + str(start_date) + + " au " + + str(end_date) + + "<br/>" + ) # Si période de PRM on vérifie les dates puis on appelle l'API else: start_date_upd = max(start_date, period_ids[0].start_date) @@ -181,9 +185,13 @@ class AccOperation(models.Model): "Opération: " + self.name + " - PRM: " - + usage_point_id.name + " - aucune période trouvée du " + str(start_date) - + " au " - + str(end_date) + "<br/>"") + + usage_point_id.name + + " - aucune période trouvée du " + + str(start_date) + + " au " + + str(end_date) + + "<br/>" + ) # Si période de PRM on vérifie les dates puis on appelle l'API else: start_date_upd = max(start_date, period_ids[0].start_date) -- GitLab