Skip to content

Commit

Permalink
fixup! fixup! Fix: Box CSV validation fails when CSV has whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Jul 20, 2023
1 parent 4be9bb9 commit eb14aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/box_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def have_distractor_sample?

def parse_csv(path)
CSV.open(path, headers: true) do |csv|
csv.each_with_index do |row|
csv.each do |row|
next unless batch_number = row["Batch"]&.strip.presence
next unless batch = @box.institution.batches.find_by(batch_number: batch_number)

Expand Down

0 comments on commit eb14aa4

Please sign in to comment.