mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
adding procfile
This commit is contained in:
parent
26f43ec6e1
commit
4722ae022c
2 changed files with 4 additions and 3 deletions
1
Procfile
Normal file
1
Procfile
Normal file
|
|
@ -0,0 +1 @@
|
|||
web: bin/rails server -p $PORT -e $RAILS_ENV
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
require 'csv'
|
||||
|
||||
namespace :data do
|
||||
@year = 2018
|
||||
@year = 2019
|
||||
|
||||
desc "Load in all data"
|
||||
task load: :environment do
|
||||
|
|
@ -298,8 +298,8 @@ namespace :data do
|
|||
stopIndex = 100000
|
||||
startTime = Time.new
|
||||
|
||||
# ['student_responses'].each do |file|
|
||||
['student_responses', 'teacher_responses'].each do |file|
|
||||
['student_responses'].each do |file|
|
||||
# ['student_responses', 'teacher_responses'].each do |file|
|
||||
recipients = file.split('_')[0]
|
||||
target_group = Question.target_groups["for_#{recipients}s"]
|
||||
csv_string = File.read(File.expand_path("../../../data/#{file}_#{@year}.csv", __FILE__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue