mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Load survey responses for boston 2018-19. Finishes #181793120
This commit is contained in:
parent
8a4baf0f99
commit
fe319a51b3
2 changed files with 20176 additions and 0 deletions
20168
data/survey_responses/2018-19_boston_student_survey_responses.csv
Normal file
20168
data/survey_responses/2018-19_boston_student_survey_responses.csv
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -44,4 +44,12 @@ namespace :one_off do
|
|||
measure_4aii = Measure.where(name: 'Overall Performance')[0]
|
||||
measure_4aii.update! measure_id: '4A-i'
|
||||
end
|
||||
|
||||
desc 'load boston 2018-19 responses'
|
||||
task load_boston_2018_19_responses: :environment do
|
||||
filepath = Rails.root.join('data', 'survey_responses', '2018-19_boston_student_survey_responses.csv')
|
||||
puts "=====================> Loading data from csv at path: #{filepath}"
|
||||
SurveyResponsesDataLoader.load_data filepath: filepath
|
||||
puts "=====================> Completed loading #{SurveyItemResponse.count} survey responses"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue