Commit bde27f29c8bc9870496f2b65e6d634e8758fa2cf
1 parent
f699c4f5
Exists in
master
Fix report name
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dialoga_plugin/event_job.rb
| ... | ... | @@ -10,7 +10,7 @@ class DialogaPlugin::EventJob < DialogaPlugin::ReportJob |
| 10 | 10 | def create_event_report(profile, report_folder) |
| 11 | 11 | events = Event.where(:profile_id => profile.id) |
| 12 | 12 | events.map do |event| |
| 13 | - filepath = '/tmp/' + DateTime.now.strftime('%Y-%m-%d-%H-%m-%S') + '-' + event.slug | |
| 13 | + filepath = '/tmp/' + DateTime.now.strftime('%Y-%m-%d-%H-%m-%S') + '-' + event.slug + '.csv' | |
| 14 | 14 | file = File.open(File.join(filepath), 'w+') |
| 15 | 15 | file.write(event.name+ "\n") |
| 16 | 16 | header = "'Nome';'Email'\n" | ... | ... |