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

small change, adding 'description' to logentry when there is no logfile

parent b1177b6c
No related branches found
No related tags found
No related merge requests found
Pipeline #54869 passed
...@@ -83,7 +83,7 @@ def convert_logentries_to_html(log_entries): ...@@ -83,7 +83,7 @@ def convert_logentries_to_html(log_entries):
results = "" results = ""
try: try:
results += "<th>service</th><th>step</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>logfile</th>" results += "<th>service</th><th>step</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>log</th>"
results += "<tbody>" results += "<tbody>"
for log in log_entries: for log in log_entries:
line = "<tr><td><b>" + str(log.service) + '</b></td>' line = "<tr><td><b>" + str(log.service) + '</b></td>'
...@@ -99,7 +99,7 @@ def convert_logentries_to_html(log_entries): ...@@ -99,7 +99,7 @@ def convert_logentries_to_html(log_entries):
if log.url_to_log_file != None: if log.url_to_log_file != None:
link = "<a href=" + '"' + str(log.url_to_log_file) + '" target="_blank">' + "logfile" + "</a>" link = "<a href=" + '"' + str(log.url_to_log_file) + '" target="_blank">' + "logfile" + "</a>"
else: else:
link = "-" link = str(log.description)
line += "<td>" + link + "</td>" line += "<td>" + link + "</td>"
results += line results += line
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 27 July 2023 <p class="footer"> Version 1 Aug 2023
</div> </div>
{% include 'taskdatabase/refresh.html' %} {% 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