mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
Renamed method.
This commit is contained in:
@@ -14,7 +14,7 @@ from app.models import NOTIFICATION_STATUS_TYPES_COMPLETED
|
||||
|
||||
|
||||
def create_initial_notification_statistic_tasks(notification):
|
||||
if notification.job_id and notification.status not in NOTIFICATION_STATUS_TYPES_COMPLETED:
|
||||
if notification.job_id and notification.status:
|
||||
record_initial_job_statistics.apply_async((str(notification.id),), queue="statistics")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user