mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 07:50:33 -07:00
fix boston usage
This commit is contained in:
parent
045bd15485
commit
d9c47dbc4d
1 changed files with 1 additions and 2 deletions
|
|
@ -13,8 +13,7 @@ class SurveyItemResponse < ActiveRecord::Base
|
|||
has_one :measure, through: :survey_item
|
||||
|
||||
scope :exclude_boston, lambda {
|
||||
boston = District.find_by_name('Boston')
|
||||
where.not(school: boston.schools) if boston.present?
|
||||
where.not(school: District.boston.schools) if District.boston.present?
|
||||
}
|
||||
|
||||
scope :averages_for_grade, lambda { |survey_items, school, academic_year, grade|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue