From 41ef6c0b834c7bc52ab22ac73cdf44ffa961278e Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 21 Aug 2015 12:16:13 -0300 Subject: [PATCH] Change csv separator for report job --- lib/dialoga_plugin/report_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dialoga_plugin/report_job.rb b/lib/dialoga_plugin/report_job.rb index 5960d7b..0ce09d8 100644 --- a/lib/dialoga_plugin/report_job.rb +++ b/lib/dialoga_plugin/report_job.rb @@ -30,7 +30,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id, :report_path) def create_proposals_report(profile, report_folder) filepath = "/tmp/#{report_path}/propostas.csv" - CSV.open(filepath, 'w' ) do |csv| + CSV.open(filepath, 'w', {:col_sep => ';'} ) do |csv| tasks = ProposalsDiscussionPlugin::ProposalTask.all count = 0 csv << ['Origem', 'Status', 'Criada em', 'Moderado por', 'Data de Moderado', 'Validado por', 'Data de Validado', 'Autor', 'Proposta', 'Categorias'] -- libgit2 0.21.2