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

This commit is contained in:
Nelson Jovel 2024-02-20 21:24:14 -08:00
parent 59b7416a3a
commit 8c458ae986

View file

@ -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