load students from all years

This commit is contained in:
rebuilt 2022-08-16 18:25:18 -07:00
parent e2a3f56b4b
commit fc4fbb4644

View file

@ -75,7 +75,7 @@ namespace :data do
end
desc 'load students'
task load_students: :environment do
Dir.glob(Rails.root.join('data', 'survey_responses', '2021-22*student*.csv')).each do |file|
Dir.glob(Rails.root.join('data', 'survey_responses', '*student*.csv')).each do |file|
puts "=====================> Loading student data from csv at path: #{file}"
StudentLoader.load_data filepath: file
end