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

add status count of jobs per task in details screen

parent bc2ac9fc
No related branches found
No related tags found
1 merge request!309add status count of jobs per task in details screen
Pipeline #53002 passed
......@@ -169,8 +169,11 @@ class Task(models.Model):
try:
key = job.metadata['status'].lower()
# if key doesn't exist, add a new one
statusses.update({ key : 0 })
statusses[key] = statusses[key] + 1
try:
statusses[key] = statusses[key] + 1
except:
statusses.update({ key : 0 })
statusses[key] = statusses[key] + 1
except:
pass
......
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