mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 16:00:33 -07:00
Add admin data for 4D. Finishes #182818489 and #182793402
This commit is contained in:
parent
1e349519bc
commit
048aacd641
9 changed files with 4191 additions and 2 deletions
|
|
@ -67,9 +67,10 @@ namespace :data do
|
|||
|
||||
desc 'load admin_data'
|
||||
task load_admin_data: :environment do
|
||||
Dir.glob(Rails.root.join('data', 'admin_data', '*.csv')).each do |filepath|
|
||||
AdminDataValue.delete_all
|
||||
Dir.glob(Rails.root.join('data', 'admin_data', 'dese', '*.csv')).each do |filepath|
|
||||
puts "=====================> Loading data from csv at path: #{filepath}"
|
||||
AdminDataLoader.load_data filepath:
|
||||
Dese::FourDLoader.load_data filepath:
|
||||
end
|
||||
puts "=====================> Completed loading #{AdminDataValue.count} survey responses"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue