Fixed download bug for services with api notifications. Re-organised the mock job and job_json methods.

This commit is contained in:
Nicholas Staples
2016-05-24 12:34:29 +01:00
parent 3a379017d9
commit 2505d1421b
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()