mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
chore: correct parsing for 'not sped' and 'lep not first year'
This commit is contained in:
parent
c48b944280
commit
ee41751f4e
4 changed files with 14 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ class Ell < ApplicationRecord
|
|||
|
||||
ell = ell.delete(",")
|
||||
case ell
|
||||
in /lep\s*student\s*1st\s*year|LEP\s*student\s*not\s*1st\s*year|EL\s*Student\s*First\s*Year|LEP\s*student|^EL\s+|true|1|^ELL$/i
|
||||
in /lep\s*student\s*1st\s*year|LEP\s*student\s*not\s*1st\s*year|EL\s*Student\s*First\s*Year|LEP\s*student|^EL\s+|true|1|^ELL$|^LEP\s*Not\s*1st\s*Year/i
|
||||
"ELL"
|
||||
in /0|2|3|Does\s*not\s*apply/i
|
||||
"Not ELL"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ class Sped < ApplicationRecord
|
|||
case sped
|
||||
in /active|^A$|1|^Special\s*Education$/i
|
||||
"Special Education"
|
||||
in /^I$|exited|0|^Not\s*Special\s*Education$|Does\s*not\s*apply|Referred|Ineligible|^No\s*special\s*needs$/i
|
||||
in /^I$|exited|0|^Not\s*Special\s*Education$|Does\s*not\s*apply|Referred|Ineligible|^No\s*special\s*needs$|Not\s*SPED/i
|
||||
"Not Special Education"
|
||||
in %r{^#*N/*A$|Unknown|SpecialEdStatus|SPED}i
|
||||
in %r{^#*N/*A$|^Unknown|^SpecialEdStatus|^SPED}i
|
||||
"Unknown"
|
||||
else
|
||||
puts "************************************"
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ class Subcategory < ActiveRecord::Base
|
|||
teacher_response_rate: teacher.rate, meets_student_threshold: student.meets_student_threshold?,
|
||||
meets_teacher_threshold: teacher.meets_teacher_threshold?)
|
||||
end
|
||||
|
||||
@response_rate[[school, academic_year]]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue