From fc4fbb4644d7fd28e25c5c957bf59b79368c986f Mon Sep 17 00:00:00 2001 From: rebuilt Date: Tue, 16 Aug 2022 18:25:18 -0700 Subject: [PATCH] load students from all years --- lib/tasks/data.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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