mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07: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
02a2c6cd97
commit
5f66d3d99a
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