fix: change the default to not an english language learner. Blank columns are treated as Not ELL. Only mark student as an english language learner if it's marked as such. Columns marked with 'NA' are treated as unknown

mciea-main
Nelson Jovel 2 years ago
parent e1fc5dbbaa
commit 06cb494f45

@ -6,12 +6,12 @@ class Ell < ApplicationRecord
friendly_id :designation, use: [:slugged] friendly_id :designation, use: [:slugged]
def self.to_designation(ell) def self.to_designation(ell)
case ell case ell
in /lep student 1st year|LEP student not 1st year|EL Student First Year|LEP\s*student/i in /lep student 1st year|LEP student not 1st year|EL Student First Year|LEP\s*student|true/i
"ELL" "ELL"
in /Does not apply/i in /^NA$|^#NA$/i
"Not ELL"
else
"Unknown" "Unknown"
else
"Not ELL"
end end
end end
end end

Loading…
Cancel
Save