mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
update parsing rules from glossary
This commit is contained in:
parent
8e7fbdfb2c
commit
c4d4c35766
6 changed files with 9 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ class Income < ApplicationRecord
|
|||
friendly_id :designation, use: [:slugged]
|
||||
|
||||
def self.to_designation(income)
|
||||
return "Unknown" if income.blank? or income.nil?
|
||||
return "Economically Disadvantaged - N" if income.blank? or income.nil?
|
||||
|
||||
case income
|
||||
in /Free\s*Lunch|Reduced\s*Lunch|Low\s*Income|Reduced\s*price\s*lunch|true|1/i
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ 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/i
|
||||
in /^I$|exited|0|^Not\s*Special\s*Education$|Does\s*not\s*apply|Referred|Ineligible/i
|
||||
"Not Special Education"
|
||||
in %r{^#*N/*A$|Unknown}i
|
||||
"Unknown"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue