From 0b78a84cebd91970b9de93d48fa8c6d6bcc5a6f7 Mon Sep 17 00:00:00 2001 From: Just Me Date: Thu, 22 Feb 2024 16:41:29 +0200 Subject: [PATCH] Fix generate_data_rows grade argument for judge spreadsheet --- app/services/spreadsheet/judge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/spreadsheet/judge.rb b/app/services/spreadsheet/judge.rb index ea373162..eada2f3f 100644 --- a/app/services/spreadsheet/judge.rb +++ b/app/services/spreadsheet/judge.rb @@ -32,7 +32,7 @@ def build sheet.merge_cells "#{sum_column}1:#{sum_column}2" sheet.merge_cells "#{place_column}1:#{place_column}2" - generate_data_rows(grade).each { |row| sheet.add_row row, style: data_style } + generate_data_rows(grade.id).each { |row| sheet.add_row row, style: data_style } # Set only after all data, otherwise will be ignored sheet.column_widths *column_widths