Dashboard/app/presenters/dashboard/analyze/graph/column/grade/grade_count.rb
2024-01-26 19:07:15 -08:00

22 lines
534 B
Ruby

# frozen_string_literal: true
module Dashboard
module Analyze
module Graph
module Column
module Grade
module GradeCount
def type
:student
end
def n_size(year_index)
SurveyItemResponse.where(grade:, survey_item: measure.student_survey_items, school:,
academic_year: academic_years[year_index]).select(:response_id).distinct.count
end
end
end
end
end
end
end