mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Load teacher survey responses
This commit is contained in:
parent
e222edc7e7
commit
f5724407f2
8 changed files with 2141 additions and 4 deletions
|
|
@ -36,6 +36,14 @@ require 'csv'
|
|||
namespace :data do
|
||||
@year = 2019
|
||||
|
||||
desc "load survey responses"
|
||||
task load_survey_responses: :environment do
|
||||
filepath = Rails.root.join('data', 'survey_results', '2020-21_teacher_survey_responses.csv')
|
||||
puts "=====================> Loading data from csv at path: #{filepath}"
|
||||
SurveyResponsesDataLoader.load_data filepath: filepath
|
||||
puts "=====================> Completed loading #{SurveyItemResponse.count} survey responses"
|
||||
end
|
||||
|
||||
desc "Load in all data"
|
||||
task load: :environment do
|
||||
# return if School.count > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue