Merge pull request #141 from alphagov/capture-aggregate-data

Capture aggregate data
This commit is contained in:
NIcholas Staples
2016-03-08 17:54:39 +00:00
14 changed files with 550 additions and 81 deletions

View File

@@ -283,12 +283,13 @@ def sample_notification(notify_db,
'id': notification_id,
'to': to,
'job': job,
'service_id': service.id,
'service': service,
'template': template,
'created_at': datetime.utcnow()
}
notification = Notification(**data)
dao_create_notification(notification)
dao_create_notification(notification, template.template_type)
return notification