From 389c55881b56ebe4f099ca41b9fbf9a2c3cd4064 Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Thu, 20 Jan 2022 18:23:27 +0100 Subject: [PATCH] [FIX]Fix end date range --- models/acc_operation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/acc_operation.py b/models/acc_operation.py index 0633eb3..88b13ae 100644 --- a/models/acc_operation.py +++ b/models/acc_operation.py @@ -1208,8 +1208,10 @@ class AccOperation(models.Model): """ result_graph = {} - if scale: + if not date_start and not date_end: date_start, date_end = self.get_last_day(scale) + else: + date_end = date_utils.end_of(date_end, 'day') # Get the step to display curve in chart scale, step_courbe, step_display_courbe = self.get_step_from_date( -- GitLab