mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 01:10:39 -07:00
Don't check standard deviation for early education surveys
This commit is contained in:
parent
e058c523b6
commit
c789c46032
1 changed files with 10 additions and 0 deletions
|
|
@ -125,6 +125,14 @@ class SurveyItemValues
|
|||
:student
|
||||
end
|
||||
|
||||
def survey_type
|
||||
survey_item_ids = headers
|
||||
.filter(&:present?)
|
||||
.filter { |header| header.start_with?('t-', 's-') }
|
||||
|
||||
SurveyItem.survey_type(survey_item_ids:)
|
||||
end
|
||||
|
||||
def valid_duration?
|
||||
return true if duration.nil? || duration == '' || duration.downcase == 'n/a' || duration.downcase == 'na'
|
||||
|
||||
|
|
@ -161,6 +169,8 @@ class SurveyItemValues
|
|||
end
|
||||
|
||||
def valid_sd?
|
||||
return true if survey_type == :early_education
|
||||
|
||||
survey_item_headers = headers.filter(&:present?).filter { |header| header.start_with?('s-', 't-') }
|
||||
likert_scores = []
|
||||
survey_item_headers.each do |header|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue