Skip to content

Commit

Permalink
One my try at fixing #5455
Browse files Browse the repository at this point in the history
  • Loading branch information
ragesoss committed May 9, 2024
1 parent 10f5798 commit c76246f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/analytics/campaign_csv_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def wikidata_to_csv

def sum_wiki_columns(csv_data)
# Skip 1st header row + 1st column course name
csv_data[1..].transpose[1..].map(&:sum).unshift('Total')
csv_data[1..].transpose[1..]&.map(&:sum)&.unshift('Total')
end

class AllCourses
Expand Down

0 comments on commit c76246f

Please sign in to comment.