diff --git a/app/helpers/exercises_helper.rb b/app/helpers/exercises_helper.rb index 0c52fbfe9..db929b94d 100644 --- a/app/helpers/exercises_helper.rb +++ b/app/helpers/exercises_helper.rb @@ -169,7 +169,7 @@ module ExercisesHelper user_wrong_count = 0 user_ids.each do |s| user_score = effictive_users.where(user_id: s).pluck(:score).sum - unless user_score.to_s >= ex&.question_score.to_f + unless user_score.to_f >= ex&.question_score.to_f user_wrong_count + 1 end end