mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
run teacher import first
This commit is contained in:
parent
eba821556b
commit
8d885b6612
1 changed files with 5 additions and 3 deletions
|
|
@ -154,7 +154,8 @@ namespace :data do
|
|||
option4: question['R4'],
|
||||
option5: question['R5'],
|
||||
for_recipient_students: question['Level'] == "Students",
|
||||
external_id: question['qid']
|
||||
external_id: question['qid'],
|
||||
reverse: question['reverse'] == "1"
|
||||
)
|
||||
else
|
||||
variations.each do |variation|
|
||||
|
|
@ -166,7 +167,8 @@ namespace :data do
|
|||
option4: question['R4'],
|
||||
option5: question['R5'],
|
||||
for_recipient_students: question['Level'] == "Students",
|
||||
external_id: question['qid']
|
||||
external_id: question['qid'],
|
||||
reverse: question['reverse'] == "1"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
@ -202,7 +204,7 @@ namespace :data do
|
|||
startTime = Time.new
|
||||
|
||||
# ['student_responses'].each do |file|
|
||||
['student_responses', 'teacher_responses'].each do |file|
|
||||
['teacher_responses', 'student_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