diff --git a/models/queue_job_batch.py b/models/queue_job_batch.py index 8477ada0b81053c18643910910c1cf349f0a86f8..f62f309f17ec6a49328377958deb5aa492caa69a 100644 --- a/models/queue_job_batch.py +++ b/models/queue_job_batch.py @@ -19,7 +19,6 @@ class QueueJobBatch(models.Model): def post_finished_action(self): if self.acc_operation_id and self.batch_type == "monthly_curves": - self.acc_operation_id.set_static_data() if ( not self.acc_operation_id.is_cdc_data_exists and self.finished_job_count > 0 @@ -42,3 +41,5 @@ class QueueJobBatch(models.Model): start_date=self.start_date, end_date=self.end_date, ) + # Recompute static datas for last month + self.acc_operation_id.set_static_data()