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

rpp-main
Nelson Jovel 2 years ago
parent 59b7416a3a
commit 8c458ae986

@ -6,12 +6,12 @@ class Ell < ApplicationRecord
friendly_id :designation, use: [:slugged]
def self.to_designation(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"
in /Does not apply/i
"Not ELL"
else
in /^NA$|^#NA$/i
"Unknown"
else
"Not ELL"
end
end
end

Loading…
Cancel
Save