diff --git a/app/models/questionnaire_survey.rb b/app/models/questionnaire_survey.rb index 499018e..86cdca5 100644 --- a/app/models/questionnaire_survey.rb +++ b/app/models/questionnaire_survey.rb @@ -465,7 +465,7 @@ class QuestionnaireSurvey answer.scored_points = total answer.individual_total = individual_total if tmp_total_weight != 0 - answer.avg_points = (individual_total.to_f / tmp_total_weight).round + answer.avg_points = (total.to_f / tmp_total_weight).round else answer.avg_points = 0 end