feat: add esp counts when calculating teacher participation rates on overview page

This commit is contained in:
Nelson Jovel 2025-01-15 13:39:41 -08:00 committed by rebuilt
parent 2f4d0bb56b
commit 534f42dfe0
11 changed files with 131 additions and 2 deletions

View file

@ -30,4 +30,8 @@ class Respondent < ApplicationRecord
def for_grade(grade)
send(GRADE_SYMBOLS[grade])
end
def total_educators
(total_teachers || 0) + (total_esp || 0)
end
end