Renamed method.

This commit is contained in:
Martyn Inglis
2017-05-12 12:19:56 +01:00
parent 63b7a4e9fe
commit eb07fce3ee
2 changed files with 2 additions and 2 deletions

View File

@@ -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")