Skip to content

Commit

Permalink
Remove duplicates from judges list in spreadsheet results
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Oct 25, 2023
1 parent e404674 commit ac44eaf
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).uniq

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

0 comments on commit ac44eaf

Please sign in to comment.