mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Merge pull request #141 from alphagov/capture-aggregate-data
Capture aggregate data
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user