Commit 41ef6c0b834c7bc52ab22ac73cdf44ffa961278e
1 parent
31ef491b
Exists in
master
Change csv separator for report job
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dialoga_plugin/report_job.rb
@@ -30,7 +30,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id, :report_path) | @@ -30,7 +30,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id, :report_path) | ||
30 | def create_proposals_report(profile, report_folder) | 30 | def create_proposals_report(profile, report_folder) |
31 | filepath = "/tmp/#{report_path}/propostas.csv" | 31 | filepath = "/tmp/#{report_path}/propostas.csv" |
32 | 32 | ||
33 | - CSV.open(filepath, 'w' ) do |csv| | 33 | + CSV.open(filepath, 'w', {:col_sep => ';'} ) do |csv| |
34 | tasks = ProposalsDiscussionPlugin::ProposalTask.all | 34 | tasks = ProposalsDiscussionPlugin::ProposalTask.all |
35 | count = 0 | 35 | count = 0 |
36 | csv << ['Origem', 'Status', 'Criada em', 'Moderado por', 'Data de Moderado', 'Validado por', 'Data de Validado', 'Autor', 'Proposta', 'Categorias'] | 36 | csv << ['Origem', 'Status', 'Criada em', 'Moderado por', 'Data de Moderado', 'Validado por', 'Data de Validado', 'Autor', 'Proposta', 'Categorias'] |