mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Make sure when checking for sufficient gender responses that we only check student survey items
This commit is contained in:
parent
098110433a
commit
63b1615bef
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ module Analyze
|
|||
|
||||
def sufficient_student_responses?(academic_year:)
|
||||
yearly_counts = SurveyItemResponse.where(school:, academic_year:,
|
||||
gender:).group(:gender).select(:response_id).distinct(:response_id).count
|
||||
gender:, survey_item: measure.student_survey_items).group(:gender).select(:response_id).distinct(:response_id).count
|
||||
yearly_counts.any? do |count|
|
||||
count[1] >= 10
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue