Fix: display job runtimes in history

This commit is contained in:
Reid 'arrdem' McKenzie 2023-06-03 20:04:06 -06:00
parent 1274ab8ec2
commit de7f91947f

View file

@ -18,7 +18,11 @@
{% endif %} {% endif %}
<div class="job-filename u-flex"> <div class="job-filename u-flex">
<label for="filename">File</label> <label for="filename">File</label>
<span name="filename">{{ctx.db.fetch_file(ctx.uid, job.file_id).filename}}</span> <span name="filename">{{ctx.db.fetch_file(ctx.uid, job.file_id).filename or "it's a secret"}}</span>
</div>
<div class="job-runtime u-flex">
<label for="runtime">Runtime</label>
<span name="Runtime">{{ (datetime.fromisoformat(job.finished_at) - datetime.fromisoformat(job.started_at)) }}</span>
</div> </div>
</div> </div>
<div class="controls u-flex u-ml-auto"> <div class="controls u-flex u-ml-auto">