From 3944c67a0ad3d0fcb44b669ecc2610c3e7bdd504 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 16 May 2016 15:31:35 +0100 Subject: [PATCH] Handle CSV files with blank column headers Implements https://github.com/alphagov/notifications-utils/pull/32 --- app/templates/views/check.html | 7 +++++++ requirements.txt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/templates/views/check.html b/app/templates/views/check.html index a3833025c..3761f2642 100644 --- a/app/templates/views/check.html +++ b/app/templates/views/check.html @@ -132,6 +132,13 @@ {{ text_field(item['columns'][column].data) }} {% endif %} {% endfor %} + {% if item['columns'].get(None) %} + {% for column in item['columns'][None].data %} + {% call field(status='default') %} + {{ column }} + {% endcall %} + {% endfor %} + {% endif %} {% endcall %} {% if count_of_displayed_recipients < count_of_recipients %} diff --git a/requirements.txt b/requirements.txt index ac28fefaf..35ef8f614 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,4 +16,4 @@ pyexcel-ods3==0.1.1 git+https://github.com/alphagov/notifications-python-client.git@1.0.0#egg=notifications-python-client==1.0.0 -git+https://github.com/alphagov/notifications-utils.git@5.2.3#egg=notifications-utils==5.2.3 +git+https://github.com/alphagov/notifications-utils.git@5.2.5#egg=notifications-utils==5.2.5