From ad84f391133bde35758e18667ba84533a7cb2c29 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 23 Feb 2025 16:47:07 +1100 Subject: [PATCH] Update timer function logs display to show first log entry - Modify logs template to extract and display the first log entry - Preserve existing log display formatting and empty log handling --- templates/dashboard/timer_functions/logs.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/dashboard/timer_functions/logs.html b/templates/dashboard/timer_functions/logs.html index 7c229ff..38f1ed8 100644 --- a/templates/dashboard/timer_functions/logs.html +++ b/templates/dashboard/timer_functions/logs.html @@ -47,7 +47,8 @@ history_url=url_for('timer.history', function_id=function_id)) }}
-
{{ invocation.logs }}
+
{{ (invocation.logs | map('first')) | join('\n') }}
{% if not invocation.logs %}
No logs available
{% endif %}