Skip to content

Commit ad387b0

Browse files
committed
Fix another bug with spreadsheets returning floats
1 parent a23ea9a commit ad387b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routines/exercises/tag/assessments.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ def exec(filename:, book_uuid:)
3535

3636
page_uuid = row[uuid_index]
3737
pre_section_exercise_numbers = row.values_at(*pre_indices).filter_map do |val|
38-
Integer(val) unless val.blank?
38+
val.to_i unless val.blank?
3939
end
4040
post_section_exercise_numbers = row.values_at(*post_indices).filter_map do |val|
41-
Integer(val) unless val.blank?
41+
val.to_i unless val.blank?
4242
end
4343

4444
exercise_numbers = pre_section_exercise_numbers + post_section_exercise_numbers

0 commit comments

Comments
 (0)