From 96e94fd7d3ce80be3f1e544d012a4914e40f599c Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 11 Jul 2024 10:42:28 -0700 Subject: [PATCH] added conditional to datetime in table --- app/main/views/dashboard.py | 2 ++ app/templates/views/dashboard/dashboard.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 557ac9955..04b166fdc 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -106,6 +106,7 @@ def service_dashboard(service_id): ), "created_at": job["created_at"], "processing_finished": job["processing_finished"], + "processing_started": job["processing_started"], "notification_count": job["notification_count"], "created_by": job["created_by"], "notifications": aggregate_notifications_by_job.get(job["id"], []), @@ -119,6 +120,7 @@ def service_dashboard(service_id): partials=get_dashboard_partials(service_id), job_and_notifications=job_and_notifications, service_data_retention_days=service_data_retention_days, + job_response=job_response ) diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 19297863c..6ad364b22 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -69,7 +69,7 @@ {{ notification.template.name }} - {{ job.processing_finished|format_datetime_table }} + {{ (job.processing_finished or job.processing_started)|format_datetime_table }} {{ notification.created_by.name }}