From 55e4165b35035fb50e7dc2f3267855017ce9d1d5 Mon Sep 17 00:00:00 2001 From: Just Me Date: Mon, 5 Feb 2024 19:02:16 +0200 Subject: [PATCH] f rb --- app/services/spreadsheet/public.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/spreadsheet/public.rb b/app/services/spreadsheet/public.rb index 7cac6df9..4d347c7b 100644 --- a/app/services/spreadsheet/public.rb +++ b/app/services/spreadsheet/public.rb @@ -32,8 +32,7 @@ def build @config.grade_groups.each do |grades| Rails.logger.debug { "Processing #{grades.join ','} grade of contest ##{@contest.id}..." } - name = grades.map { Grade::VALUES[_1] }.join ', ' - workbook.add_worksheet name: do |sheet| + workbook.add_worksheet name: grades.join(', ') do |sheet| add_header_if_required sheet, title_style # Merge only after all data, otherwise will be ignored