Skip to content

Commit

Permalink
fix for challenge table (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunAranetaCodes authored Sep 19, 2024
1 parent e87d9e7 commit a8e69d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/challenge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def self.to_csv(competition, options = {})
def self.challenge_csv_line(challenge, competition, challenge_columns)
values = [challenge.region.name, competition.year]
values += challenge.attributes.values_at(*challenge_columns)
values << challenge.sponsors.pluck(:name)
#values << challenge.sponsors.pluck(:name)
values << challenge.sponsors&.pluck(:name)&.compact&.join(',')
values << challenge.published_entries.length
end

Expand Down

0 comments on commit a8e69d1

Please sign in to comment.