mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
add one-off script to load lee data
This commit is contained in:
parent
bc6d2dcaf9
commit
35cbb640ec
1 changed files with 3 additions and 3 deletions
|
|
@ -166,11 +166,11 @@ namespace :one_off do
|
|||
# should be somewhere near 295738
|
||||
end
|
||||
|
||||
desc 'load survey responses for lowell schools 2022-23'
|
||||
task load_survey_responses_for_lowell_2022_23: :environment do
|
||||
desc 'load survey responses'
|
||||
task load_survey_responses: :environment do
|
||||
survey_item_response_count = SurveyItemResponse.count
|
||||
student_count = Student.count
|
||||
path = '/data/survey_responses/2022-23/'
|
||||
path = '/data/survey_responses/clean/'
|
||||
|
||||
Sftp::Directory.open(path:) do |file|
|
||||
SurveyResponsesDataLoader.from_file(file:)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue