From ef7234238f8dd4062d3f7ca356412b031c6fecbe Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 3 Jun 2023 19:17:35 -0600 Subject: [PATCH] Show print runtime --- .../src/python/tentacles/templates/jobs_list.html.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/tentacles/src/python/tentacles/templates/jobs_list.html.j2 b/projects/tentacles/src/python/tentacles/templates/jobs_list.html.j2 index 17f5043..1846eb6 100644 --- a/projects/tentacles/src/python/tentacles/templates/jobs_list.html.j2 +++ b/projects/tentacles/src/python/tentacles/templates/jobs_list.html.j2 @@ -18,8 +18,14 @@ {% 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"}}
+ {% if job.started_at %} +
+ + {{ (datetime.now() - datetime.fromisoformat(job.started_at)) }} +
+ {% endif %}
{% if ctx.uid %}