diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index a5c07cc9..61245ab5 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -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