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

add unicity also to regular plot list

parent a785fe73
No related branches found
No related tags found
No related merge requests found
Pipeline #41812 passed
...@@ -698,12 +698,17 @@ def construct_inspectionplots(task,source='task_id'): ...@@ -698,12 +698,17 @@ def construct_inspectionplots(task,source='task_id'):
results += "<p>Clicking a link will redirect to SURF SARA in a new browser window. </p>" results += "<p>Clicking a link will redirect to SURF SARA in a new browser window. </p>"
plots = task.quality_json["plots"] plots = task.quality_json["plots"]
# keep a temporary list of filenames to check uniqueness
plot_files = []
for plot in plots: for plot in plots:
basename = plot['basename'] basename = plot['basename']
if not basename in plot_files:
surl = plot['surl'] + "?action=show&authz=" + str(token) surl = plot['surl'] + "?action=show&authz=" + str(token)
url = surl.replace(translation[0],translation[1]) url = surl.replace(translation[0],translation[1])
results += '<tr><td><a href="' + url + '" target="_blank">'+ basename + '</a></td></tr>' results += '<tr><td><a href="' + url + '" target="_blank">'+ basename + '</a></td></tr>'
plot_files.append(basename)
elif source == 'sas_id': elif source == 'sas_id':
sas_id = task.sas_id sas_id = task.sas_id
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 22 December 2022 - 10:00 <p class="footer"> Version 22 December 2022 - 11:00
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment