Merge pull request #607 from alphagov/download_bug_fix

Fixed download bug for services with api notifications. Re-organised …
This commit is contained in:
NIcholas Staples
2016-05-25 09:46:25 +01:00
5 changed files with 115 additions and 93 deletions

View File

@@ -104,7 +104,7 @@ def generate_notifications_csv(json_list):
x['to'],
x['template']['name'],
x['template']['template_type'],
x['job']['original_file_name'],
x['job']['original_file_name'] if x['job'] else '',
x['status'],
format_datetime(x['created_at'])])
retval = content.getvalue()