mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Process CSV files with column headers of any case
Implements and depends on: https://github.com/alphagov/notifications-utils/pull/27 Should be merged and deployed before the same change in the admin app.
This commit is contained in:
@@ -156,7 +156,10 @@ def process_job(job_id):
|
||||
'template': str(template.id),
|
||||
'job': str(job.id),
|
||||
'to': recipient,
|
||||
'personalisation': personalisation
|
||||
'personalisation': {
|
||||
key: personalisation.get(key)
|
||||
for key in template.placeholders
|
||||
}
|
||||
})
|
||||
|
||||
if template.template_type == 'sms':
|
||||
|
||||
Reference in New Issue
Block a user