fix: fix teacher n_size so instead of counting all the indivual teacher responses for a measure, it only counts the unique respondents

mciea-main
Nelson Jovel 2 years ago committed by rebuilt
parent 1265a164b9
commit 4711e16c03

@ -34,7 +34,7 @@ module Analyze
def n_size(year_index)
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

Loading…
Cancel
Save