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

SDC-1664 add task_type to plots

parent f6fc8b5f
No related branches found
No related tags found
No related merge requests found
Pipeline #106086 passed
......@@ -774,7 +774,7 @@ def construct_inspectionplots(task, expand_image=False, source='task_id'):
results = "<h4>(Unique) Inspection Plots and Summary Logs for SAS_ID " + str(sas_id) + "</h4>"
results += "<p>Clicking a link will redirect to SURF SARA in a new browser window. </p>"
tasks = Task.objects.filter(sas_id=sas_id)
tasks = Task.objects.filter(sas_id=sas_id).order_by('task_type','id')
for task in tasks:
......@@ -783,7 +783,12 @@ def construct_inspectionplots(task, expand_image=False, source='task_id'):
continue
try:
results += '<tr style="background-color:#7EB1C4"><td colspan="3"><b>Task ' + str(task.id) + '</b></td></tr>'
if task.task_type == 'regular':
results += f'<tr style="background-color:#7EB1C4"><td colspan="3"><b>Task {task.id}</b></td></tr>'
else:
results += f'<tr style="background-color:#7EB1C4"><td colspan="3"><b>Task {task.id}</b> ({task.task_type})</td></tr>'
results = add_plots(task, results, expand_image)
except Exception as error:
......
......@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 24 Jan 2025</p>
<p class="footer"> Version 30 Jan 2025</p>
</div>
{% include 'taskdatabase/refresh.html' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment