mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Add metadata for 2019-20 year. Finishes #181530277
This commit is contained in:
parent
36da912253
commit
5a9e8a9b01
5 changed files with 2309 additions and 2298 deletions
|
|
@ -63,6 +63,8 @@ class Seeder
|
|||
academic_years.each do |academic_year|
|
||||
total_students = row["Total Students for Response Rate (#{academic_year.range})"]
|
||||
total_teachers = row["Total Teachers for Response Rate (#{academic_year.range})"]
|
||||
total_students = remove_commas(total_students)
|
||||
total_teachers = remove_commas(total_teachers)
|
||||
respondent = Respondent.find_or_initialize_by school: school, academic_year: academic_year
|
||||
respondent.total_students = total_students
|
||||
respondent.total_teachers = total_teachers
|
||||
|
|
@ -140,4 +142,8 @@ class Seeder
|
|||
def marked?(mark)
|
||||
mark.present? ? mark.upcase.strip == 'X' : false
|
||||
end
|
||||
|
||||
def remove_commas(target)
|
||||
target.gsub(',', '') if target.present?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue