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

troubleshooting

parent 22bd3cca
No related branches found
No related tags found
3 merge requests!74Acceptance,!73Master,!70troubleshooting
...@@ -39,25 +39,23 @@ def get_size(status_list): ...@@ -39,25 +39,23 @@ def get_size(status_list):
def convert_logentries_to_html(log_entries): def convert_logentries_to_html(log_entries):
results = "" results = ""
try: results += "<th>service</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>logfile</th>"
results += "<th>service</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>logfile</th>" results += "<tbody>"
results += "<tbody>" for log in log_entries:
for log in log_entries: line = "<tr><td><b>" + log.step_name + '</b></td>'
line = "<tr><td><b>" + log.step_name + '</b></td>' line +='<td class="' + log.status + '" >' + log.status + "</td>"
line +='<td class="' + log.status + '" >' + log.status + "</td>" line += "<td>" + str(log.timestamp.strftime("%m-%d-%Y, %H:%M:%S")) + "</td>"
line += "<td>" + str(log.timestamp.strftime("%m-%d-%Y, %H:%M:%S")) + "</td>" line += "<td>" + str(log.cpu_cycles) + "</td>"
line += "<td>" + str(log.cpu_cycles) + "</td>" line += "<td>" + str(log.wall_clock_time) + "</td>"
line += "<td>" + str(log.wall_clock_time) + "</td>" 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 = "-" line += "<td>" + link + "</td>"
line += "<td>" + link + "</td>" results += line
results += line
results += "</tbody>"
results += "</tbody>"
except:
results = "<tr><td>no data</td></tr>"
return results return results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment