From e7e29d3c4e471f51b6e89b5192874b809c3835ef Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Fri, 29 Mar 2024 16:08:23 +0100 Subject: [PATCH] is_summary check a bit sooner, because we may to intercept it before the datamanager engages --- atdb/taskdatabase/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atdb/taskdatabase/models.py b/atdb/taskdatabase/models.py index fd3e3662..2afda992 100644 --- a/atdb/taskdatabase/models.py +++ b/atdb/taskdatabase/models.py @@ -231,7 +231,7 @@ class Task(models.Model): self.calculated_qualities = qualities.calculate_qualities(self, tasks_for_this_sasid, quality_thresholds) # nv:20feb2024, check if this task is a summary task - if (self.status != State.STORED.value) & (self.new_status == State.STORED.value): + if (self.status != State.PROCESSED.value) & (self.new_status == State.PROCESSED.value): self.is_summary = check_if_summary(self) # nv:20feb2024, same as above, but for backward compatibilty reasons. -- GitLab