Skip to content
Snippets Groups Projects
Commit 2af35dfe authored by Nico Vermaas's avatar Nico Vermaas
Browse files

do not calculate quality for suspended or discarded tasks

parent 6c73fa8d
No related branches found
No related tags found
1 merge request!354do not calculate quality for suspended or discarded tasks
Pipeline #86526 passed
...@@ -73,6 +73,10 @@ def calculate_qualities(task, tasks_for_this_sasid, quality_thresholds): ...@@ -73,6 +73,10 @@ def calculate_qualities(task, tasks_for_this_sasid, quality_thresholds):
for task in tasks_for_this_sasid: for task in tasks_for_this_sasid:
# skip 'suspended' and 'discarded' tasks
if task.status in ['suspended', 'discarded']:
continue
# because this all happens in the overridden 'Task.save', the actual saving has not yet occurred # because this all happens in the overridden 'Task.save', the actual saving has not yet occurred
# So use the calculated quality from the unsaved task instead. # So use the calculated quality from the unsaved task instead.
if task.id == unsaved_task.id: if task.id == unsaved_task.id:
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 21 Jun 2024 <p class="footer"> Version 28 Jun 2024
</div> </div>
{% include 'taskdatabase/refresh.html' %} {% include 'taskdatabase/refresh.html' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment