Commit 9cf3e36cd7817a45a6538c11bfb8f301f5502ac5

Authored by Victor Costa
1 parent 9470cc0b
Exists in master

Fix report job

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/dialoga_plugin/report_job.rb
@@ -45,7 +45,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id, :report_path) @@ -45,7 +45,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id, :report_path)
45 count += 1 45 count += 1
46 puts "%s de %s: adicionando task: %s" % [count, tasks.count, task.id ] 46 puts "%s de %s: adicionando task: %s" % [count, tasks.count, task.id ]
47 info = [] 47 info = []
48 - info.push(task.article_parent.nil? ? '' : task.article_parent.categories.join(' ')) 48 + info.push(task.article_parent.nil? ? '' : task.article_parent.categories.map(&:name).join(' '))
49 info.push(task.proposal_source) 49 info.push(task.proposal_source)
50 info.push(status_translation[task.status]) 50 info.push(status_translation[task.status])
51 info.push(task.created_at.strftime("%d/%m/%y %H:%M")) 51 info.push(task.created_at.strftime("%d/%m/%y %H:%M"))