diff --git a/app/services/spreadsheet/public.rb b/app/services/spreadsheet/public.rb index 7d4c9419..d9bf2444 100644 --- a/app/services/spreadsheet/public.rb +++ b/app/services/spreadsheet/public.rb @@ -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}..." }