From 3345cee21bb4a5de6bd515841428b208276736ac Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Thu, 22 Jun 2023 15:01:04 -0600 Subject: [PATCH] Fix: Only if it would be non-null --- .../src/python/tentacles/templates/jobs_history.html.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 b/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 index 30060fe..cadc3c4 100644 --- a/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 +++ b/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 @@ -20,10 +20,12 @@ {{ctx.db.fetch_file(ctx.uid, job.file_id).filename or "it's a secret"}} + {% if job.finished_at and job.started_at %}
{{ (datetime.fromisoformat(job.finished_at) - datetime.fromisoformat(job.started_at)) }}
+ {% endif %}
{% if ctx.uid %}