Use modules to namespace classes for analyze page

This commit is contained in:
rebuilt 2022-08-02 18:16:33 -07:00
parent c568e8bc06
commit 94a58a87d7
15 changed files with 246 additions and 213 deletions

View file

@ -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