Merge pull request #1707 from GSA/1634-timedate-column-within-recent-batch-table-isnt-accurate

update timestamp to display notification time created_at
This commit is contained in:
Carlo Costino
2024-07-22 18:14:26 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,8 @@ def service_dashboard(service_id):
".view_job", service_id=current_service.id, job_id=job["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"], []),

View File

@@ -41,7 +41,7 @@
<span>Template</span>
</th>
<th scope="col" class="table-field-heading">
<span>Time sent</span>
<span>Job status</span>
</th>
<th scope="col" class="table-field-heading">
<span>Sender</span>
@@ -69,7 +69,8 @@
{{ notification.template.name }}
</td>
<td class="table-field time-sent">
{{ job.created_at | format_datetime_table }}
{{ (job.processing_finished if job.processing_finished else job.processing_started
if job.processing_started else job.created_at)|format_datetime_table }}
</td>
<td class="table-field sender">
{{ notification.created_by.name }}