Add event length to csv export

This commit is contained in:
Tocho Tochev 2023-09-27 19:09:22 +00:00 committed by GitHub
parent ddc11f4fcc
commit 6326500ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<%- csv_headers = %w{id title subtitle type track language paticipants status rank number_of_votes} -%>
<%- csv_headers = %w{id title subtitle type track language paticipants length status rank number_of_votes} -%>
<%= CSV.generate_line(csv_headers).html_safe -%>
<%- @events.each do |event| -%>
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.status, event.rank, event.number_of_votes]).html_safe -%>
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.length, event.status, event.rank, event.number_of_votes]).html_safe -%>
<%- end -%>