mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Show upcoming jobs on the dashboard
On the dashboard: - adds a new ‘in the next 24 hours’ section to the dashboard which lists upcoming jobs - tweaks some spacing on the dashboard so that it doesn’t look like too much of a mess - don’t show scheduled jobs in the table of normal jobs On the jobs page: - don’t show scheduled jobs
This commit is contained in:
@@ -158,7 +158,8 @@ def job_json(
|
||||
notification_count=1,
|
||||
notifications_sent=1,
|
||||
notifications_requested=1,
|
||||
job_status='Delivered'
|
||||
job_status='Delivered',
|
||||
scheduled_for=''
|
||||
):
|
||||
if job_id is None:
|
||||
job_id = str(generate_uuid())
|
||||
@@ -180,8 +181,10 @@ def job_json(
|
||||
'created_by': created_by_json(
|
||||
created_by.id,
|
||||
created_by.name,
|
||||
created_by.email_address)
|
||||
}
|
||||
created_by.email_address
|
||||
),
|
||||
'scheduled_for': scheduled_for
|
||||
}
|
||||
return data
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user