Skip to content

Commit

Permalink
Fix generate_data_rows grade argument for judge spreadsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
just806me committed Feb 22, 2024
1 parent 2a18f08 commit 0b78a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/spreadsheet/judge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b78a84

Please sign in to comment.