mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 17:30:38 -07:00
Use modules to namespace classes for analyze page
This commit is contained in:
parent
c568e8bc06
commit
94a58a87d7
15 changed files with 246 additions and 213 deletions
|
|
@ -67,12 +67,7 @@ namespace :data do
|
|||
end
|
||||
desc 'load students'
|
||||
task load_students: :environment do
|
||||
files = ['2021-22_attleboro_student_survey_responses.csv',
|
||||
'2021-22_lowell_milford_student_survey_responses.csv',
|
||||
'2021-22_revere_somerville_wareham_student_survey_responses.csv',
|
||||
'2021-22_winchester_student_survey_responses.csv' ]
|
||||
files.each do |file|
|
||||
file = Rails.root.join('data', 'survey_responses', file)
|
||||
Dir.glob(Rails.root.join('data', 'survey_responses', '*.csv')).each do |file|
|
||||
puts "=====================> Loading student data from csv at path: #{file}"
|
||||
StudentLoader.load_data filepath: file
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue