mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: fix crash when viewing income graph on analyze page
This commit is contained in:
parent
aaa43cdd64
commit
8d33095a48
1 changed files with 1 additions and 3 deletions
|
|
@ -31,11 +31,9 @@ module Analyze
|
|||
|
||||
yearly_counts = SurveyItemResponse.where(school:, academic_year:,
|
||||
income:, survey_item: measure.student_survey_items).group(:income).select(:response_id).distinct(:response_id).count
|
||||
more_than_ten_respondents = yearly_counts.any? do |count|
|
||||
yearly_counts.any? do |count|
|
||||
count[1] >= 10
|
||||
end
|
||||
|
||||
sufficient_overall_responses && more_than_ten_respondents
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue