mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fixing bugs with school_question creation
This commit is contained in:
parent
c7892bcb86
commit
5dc79e5da7
2 changed files with 4 additions and 2 deletions
|
|
@ -461,6 +461,7 @@ namespace :data do
|
|||
next if school.district.name != "Boston"
|
||||
|
||||
attempt_data = Attempt.
|
||||
joins(:question).
|
||||
created_in(school_category.year).
|
||||
for_question(question).
|
||||
for_school(school).
|
||||
|
|
@ -469,7 +470,7 @@ namespace :data do
|
|||
|
||||
available_responders = school.available_responders_for(question)
|
||||
|
||||
school_question = school_category.school_questions.for(school, question)
|
||||
school_question = school_category.school_questions.for(school, question).first
|
||||
if school_question.present?
|
||||
school_questions << school_question
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue