Fix bug.
This commit is contained in:
parent
a39e5738a5
commit
ecd052b9af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue