mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: Add 'English Learner' and 'DirectCert' as valid column headers
This commit is contained in:
parent
15329f0390
commit
d820172ff7
1 changed files with 3 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ class SurveyItemValues
|
|||
if self_report.nil? && sis.present?
|
||||
hispanic = value_from(pattern: /Hispanic\s*Latino/i)&.downcase
|
||||
race_codes = race_codes.reject { |code| code == 5 } if hispanic == "true" && race_codes.count == 1
|
||||
race_codes = race_codes.push(4) if hispanic == "true" || hispanic == "1"
|
||||
race_codes = race_codes.push(4) if %w[true 1].include?(hispanic)
|
||||
end
|
||||
|
||||
Race.normalize_race_list(race_codes)
|
||||
|
|
@ -169,7 +169,7 @@ class SurveyItemValues
|
|||
end
|
||||
|
||||
def raw_income
|
||||
@raw_income ||= value_from(pattern: /Low\s*Income|Raw\s*Income|SES-\s*SIS|EconDisadvantaged|Income\s*SIS/i)
|
||||
@raw_income ||= value_from(pattern: /Low\s*Income|Raw\s*Income|SES-\s*SIS|EconDisadvantaged|Income\s*SIS|DirectCert/i)
|
||||
end
|
||||
|
||||
def income
|
||||
|
|
@ -177,7 +177,7 @@ class SurveyItemValues
|
|||
end
|
||||
|
||||
def raw_ell
|
||||
@raw_ell ||= value_from(pattern: /EL Student First Year|Raw\s*ELL|ELL-*\s*SIS/i)
|
||||
@raw_ell ||= value_from(pattern: /EL Student First Year|Raw\s*ELL|ELL-*\s*SIS|English Learner/i)
|
||||
end
|
||||
|
||||
def ell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue