From de7f91947fc220ede48a03fe47cca5cb35867d34 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 3 Jun 2023 20:04:06 -0600 Subject: [PATCH] Fix: display job runtimes in history --- .../src/python/tentacles/templates/jobs_history.html.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 d3ff970..30060fe 100644 --- a/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 +++ b/projects/tentacles/src/python/tentacles/templates/jobs_history.html.j2 @@ -18,7 +18,11 @@ {% endif %}
- {{ctx.db.fetch_file(ctx.uid, job.file_id).filename}} + {{ctx.db.fetch_file(ctx.uid, job.file_id).filename or "it's a secret"}} +
+
+ + {{ (datetime.fromisoformat(job.finished_at) - datetime.fromisoformat(job.started_at)) }}