mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: fix teacher n_size so instead of counting all the indivual teacher responses for a measure, it only counts the unique respondents
This commit is contained in:
parent
5f49746bf4
commit
0bacac6962
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ module Analyze
|
||||||
|
|
||||||
def n_size(year_index)
|
def n_size(year_index)
|
||||||
SurveyItemResponse.where(survey_item: measure.teacher_survey_items, school:,
|
SurveyItemResponse.where(survey_item: measure.teacher_survey_items, school:,
|
||||||
academic_year: academic_years[year_index]).count
|
academic_year: academic_years[year_index]).select(:response_id).distinct.count
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue