mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
make sure grade gets updated when loading survey responses
This commit is contained in:
parent
89a7f27b88
commit
f9c4ed8880
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class SurveyResponsesDataLoader
|
|||
|
||||
def self.create_or_update_response(survey_item_response:, likert_score:, row:, survey_item:)
|
||||
if survey_item_response.present?
|
||||
survey_item_response.update!(likert_score:)
|
||||
survey_item_response.update!(likert_score:, grade: row.grade)
|
||||
[]
|
||||
else
|
||||
SurveyItemResponse.new(response_id: row.response_id, academic_year: row.academic_year, school: row.school, survey_item:,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue