mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Fix: enable correct detection of student surveys types by rejecting any
headers ending with '-1' (the variants of standard questions)
This commit is contained in:
parent
896f0d9961
commit
ddf9a628d5
1 changed files with 1 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ class SurveyItemValues
|
|||
def survey_type
|
||||
survey_item_ids = headers
|
||||
.filter(&:present?)
|
||||
.reject { |header| header.end_with?('-1') }
|
||||
.filter { |header| header.start_with?('t-', 's-') }
|
||||
|
||||
SurveyItem.survey_type(survey_item_ids:)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue