dev_forum
SylorHuang 5 years ago
parent 5a3ac8958c
commit a75483d8f2

@ -234,7 +234,7 @@ module ExercisesHelper
shixun_score_array.each_with_index do |s,index| shixun_score_array.each_with_index do |s,index|
right_answer = (index == 0) right_answer = (index == 0)
if effictive_users_count == 0 if effictive_users_count == 0
score_percent = "0.0" score_percent = 0.0
else else
score_percent = (s.to_i / effictive_users_count.to_f ).round(3) score_percent = (s.to_i / effictive_users_count.to_f ).round(3)
end end

Loading…
Cancel
Save