From 73b171faaef4d4c83ba534f670c24e6417480a6c Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Tue, 1 Aug 2023 11:15:37 +0200
Subject: [PATCH] small change, adding 'description' to logentry when there is
 no logfile

---
 atdb/taskdatabase/services/algorithms.py            | 4 ++--
 atdb/taskdatabase/templates/taskdatabase/index.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py
index f9a331d1..d60bd495 100644
--- a/atdb/taskdatabase/services/algorithms.py
+++ b/atdb/taskdatabase/services/algorithms.py
@@ -83,7 +83,7 @@ def convert_logentries_to_html(log_entries):
     results = ""
 
     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>"
         for log in log_entries:
             line = "<tr><td><b>" + str(log.service) + '</b></td>'
@@ -99,7 +99,7 @@ def convert_logentries_to_html(log_entries):
             if log.url_to_log_file != None:
                 link = "<a href=" + '"' + str(log.url_to_log_file) + '" target="_blank">' + "logfile" + "</a>"
             else:
-                link = "-"
+                link = str(log.description)
             line += "<td>" + link + "</td>"
             results += line
 
diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index fe8c94fc..e14c6040 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -31,7 +31,7 @@
             {% include 'taskdatabase/pagination.html' %}
         </div>
     </div>
-    <p class="footer"> Version 27 July 2023
+    <p class="footer"> Version 1 Aug 2023
 </div>
 
 {% include 'taskdatabase/refresh.html' %}
-- 
GitLab