Added job row number to the notification for csv jobs. All tests passing.

This commit is contained in:
Nicholas Staples
2016-05-19 10:46:03 +01:00
parent a606f2c97e
commit 0fe0c1d2b4
8 changed files with 81 additions and 15 deletions

View File

@@ -310,6 +310,7 @@ def sample_notification(notify_db,
service=None,
template=None,
job=None,
job_row_number=None,
to_field=None,
status='sending',
reference=None,
@@ -347,6 +348,8 @@ def sample_notification(notify_db,
'created_at': created_at,
'content_char_count': content_char_count
}
if job_row_number:
data['job_row_number'] = job_row_number
notification = Notification(**data)
if create:
dao_create_notification(notification, template.template_type, provider.identifier)