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

make plot id unique

parent 49e89899
No related branches found
No related tags found
1 merge request!291Sdc 935 better plots
Pipeline #47785 passed
......@@ -3,6 +3,7 @@
Author: Nico Vermaas - Astron
Description: Business logic for ATDB. These functions are called from the views (views.py).
"""
import os
import requests
import base64
from datetime import datetime, timedelta
......@@ -724,7 +725,7 @@ def add_plots(task, token, translation, results):
collapseable = collapseable.replace('replace_with_basename', basename)
collapseable = collapseable.replace('replace_with_image', img_html)
collapseable = collapseable.replace('replace_with_url', url)
collapseable = collapseable.replace('replace_with_id', "plot" + str(count))
collapseable = collapseable.replace('replace_with_id', "plot" + str(task.id)+'_'+str(count))
results += '<tr><td>' + collapseable + '</td></tr>'
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment