Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
Sum of non-numeric elements requires an initial argument.
  • Loading branch information
just806me committed Sep 2, 2023
1 parent ee164b2 commit d9adf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/spreadsheet/public.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def build
judges_style = workbook.styles.add_style JUDGES_STYLE_OPTIONS.deep_dup
data_style = workbook.styles.add_style DATA_STYLE_OPTIONS.deep_dup

first_judge, *judges = @tasks.sum(&:judges)
first_judge, *judges = @tasks.sum([], &:judges)

@grades.each do |grade|
Rails.logger.debug { "Processing #{grade} grade of contest ##{@contest.id}..." }
Expand Down

0 comments on commit d9adf25

Please sign in to comment.