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

Merge branch 'small-updates' into 'master'

do not calculate quality for suspended or discarded tasks

See merge request !354
parents 8038dcf2 2af35dfe
No related branches found
No related tags found
1 merge request!354do not calculate quality for suspended or discarded tasks
Pipeline #86527 passed
......@@ -73,6 +73,10 @@ def calculate_qualities(task, tasks_for_this_sasid, quality_thresholds):
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
# So use the calculated quality from the unsaved task instead.
if task.id == unsaved_task.id:
......
......@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 21 Jun 2024
<p class="footer"> Version 28 Jun 2024
</div>
{% 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