|
|
|
|
@ -460,6 +460,10 @@ namespace :data do
|
|
|
|
|
school = school_category.school
|
|
|
|
|
next if school.district.name != "Boston"
|
|
|
|
|
|
|
|
|
|
school_question = school_category.school_questions.for(school, question).first
|
|
|
|
|
if school_question.present?
|
|
|
|
|
school_questions << school_question
|
|
|
|
|
else
|
|
|
|
|
attempt_data = Attempt.
|
|
|
|
|
joins(:question).
|
|
|
|
|
created_in(school_category.year).
|
|
|
|
|
@ -470,10 +474,6 @@ namespace :data do
|
|
|
|
|
|
|
|
|
|
available_responders = school.available_responders_for(question)
|
|
|
|
|
|
|
|
|
|
school_question = school_category.school_questions.for(school, question).first
|
|
|
|
|
if school_question.present?
|
|
|
|
|
school_questions << school_question
|
|
|
|
|
else
|
|
|
|
|
school_question = school_category.school_questions.new(
|
|
|
|
|
school: school,
|
|
|
|
|
question: question,
|
|
|
|
|
|