From 628abe70a91343c9fe026872fa1021243330a097 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 4 Aug 2014 12:19:12 +0100 Subject: Quote body name in stats csv export Some Public Body names contain commas (or other characters) which lead to a malformed CSV where parts of the body name are in later columns. --- lib/tasks/stats.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tasks/stats.rake') diff --git a/lib/tasks/stats.rake b/lib/tasks/stats.rake index f09594529..46a645b4d 100644 --- a/lib/tasks/stats.rake +++ b/lib/tasks/stats.rake @@ -119,7 +119,7 @@ DESC count ? count : 0 end - row = [body.name] + stats + row = [%Q("#{ body.name }")] + stats puts row.join(",") end end @@ -147,7 +147,7 @@ DESC count ? count : 0 end - row = [body.name] + stats + row = [%Q("#{ body.name }")] + stats puts row.join(",") end end -- cgit v1.2.3