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

Merge branch 'small-updates' into 'master'

also reset aggregation state on FETCHED (instead of only DEFINED)

See merge request !353
parents 6adedfa6 6c73fa8d
No related branches found
No related tags found
1 merge request!353also reset aggregation state on FETCHED (instead of only DEFINED)
Pipeline #85850 passed
......@@ -238,6 +238,17 @@ class Task(models.Model):
# which is always... except in some simpler unittests
pass
# when tasks are put back on fetched (resetting the flow), also reset some activity values
if (self.status != State.FETCHED.value) & (self.new_status == State.FETCHED.value):
try:
self.activity.status = State.FETCHED.value
self.activity.is_processed = False
self.activity.is_aggregated = False
self.activity.save()
except:
# only bother with it if the task actually has an activity attached
# which is always... except in some simpler unittests
pass
# when a task goes to PROCESSED...
if (self.status != State.PROCESSED.value) & (self.new_status == State.PROCESSED.value):
......
......@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 27 May 2024
<p class="footer"> Version 21 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