mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Base ‘% complete’ on notifications requested
The job is complete when all notifications are delivered or failed. The report is complete once we have all notifications are in the database. This commit changes the meaning of the percentage from the former to the latter. This is how it was before we removed the aggregate stats for jobs.
This commit is contained in:
@@ -156,6 +156,7 @@ def job_json(service_id,
|
||||
original_file_name="thisisatest.csv",
|
||||
notification_count=1,
|
||||
notifications_sent=1,
|
||||
notifications_requested=1,
|
||||
status=None):
|
||||
if job_id is None:
|
||||
job_id = str(generate_uuid())
|
||||
@@ -174,6 +175,7 @@ def job_json(service_id,
|
||||
'created_at': created_at,
|
||||
'notification_count': notification_count,
|
||||
'notifications_sent': notifications_sent,
|
||||
'notifications_requested': notifications_requested,
|
||||
'status': status,
|
||||
'created_by': created_by_json(
|
||||
created_by.id,
|
||||
|
||||
Reference in New Issue
Block a user