Add organisation type to live services csv report

This commit is contained in:
Pea Tyczynska
2019-05-03 14:36:11 +01:00
parent c768b6c8f3
commit a53849013a
2 changed files with 10 additions and 9 deletions

View File

@@ -204,7 +204,7 @@ def platform_admin_reports():
def live_services_csv():
results = service_api_client.get_live_services_data()["data"]
live_services_columns = [
"Service ID", "Organisation", "Service name", "Consent to research", "Main contact",
"Service ID", "Organisation", "Organisation type", "Service name", "Consent to research", "Main contact",
"Contact email", "Contact mobile", "Live date", "SMS volume intent", "Email volume intent",
"Letter volume intent", "SMS sent this year", "Emails sent this year", "Letters sent this year"
]
@@ -214,6 +214,7 @@ def live_services_csv():
live_services_data.append([
row["service_id"],
row["organisation_name"],
row["organisation_type"],
row["service_name"],
row["consent_to_research"],
row["contact_name"],