mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
import students
This commit is contained in:
parent
8c7767d0b9
commit
12e4e3f177
28 changed files with 11093 additions and 10843 deletions
|
|
@ -65,6 +65,20 @@ namespace :data do
|
|||
end
|
||||
puts "=====================> Completed loading #{AdminDataValue.count} survey responses"
|
||||
end
|
||||
desc 'load students'
|
||||
task load_students: :environment do
|
||||
files = [ '2021-22_winchester_student_survey_responses.csv' ]
|
||||
# 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)
|
||||
puts "=====================> Loading student data from csv at path: #{file}"
|
||||
StudentLoader.load_data filepath: file
|
||||
end
|
||||
puts "=====================> Completed loading #{Student.count} survey responses"
|
||||
end
|
||||
|
||||
desc 'reset all cache counters'
|
||||
task reset_cache_counters: :environment do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue