mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: tests
This commit is contained in:
parent
5de7bbe8a1
commit
2302c12b5b
2 changed files with 156 additions and 22 deletions
|
|
@ -34,7 +34,7 @@ class ParentScalePresenter
|
|||
def score
|
||||
@score ||= SurveyItemResponse.where(survey_item: scale.survey_items.parent_survey_items, school:,
|
||||
academic_year:)
|
||||
.having("count(*) > 10")
|
||||
.having("count(*) >= 10")
|
||||
.group(:survey_item)
|
||||
.average(:likert_score)
|
||||
.values.average
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue