From 1e93f7b6fcfaa276055944b0f08ebe3f83603ad4 Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com" <sylor_huang@126.com>
Date: Mon, 13 Jan 2020 18:18:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A1=AB=E7=A9=BA=E9=A2=98?=
 =?UTF-8?q?=E7=9A=84=E6=A0=87=E5=87=86=E7=AD=94=E6=A1=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/helpers/exercises_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/helpers/exercises_helper.rb b/app/helpers/exercises_helper.rb
index eaeb458a3..f8fba93f5 100644
--- a/app/helpers/exercises_helper.rb
+++ b/app/helpers/exercises_helper.rb
@@ -188,7 +188,7 @@ module ExercisesHelper
         if ex_ordered
           all_user_answers = effictive_users.pluck(:answer_text)
           null_stand_choice.each_with_index do |s,index|
-            s_choice_text = null_stand_text[index]
+            s_choice_text = null_stand_text[index].to_s.strip.downcase
             user_count = 0
             # user_count = user_count + effictive_users.where("exercise_choice_id = ? and answer_text = ?",s,s_choice_text).pluck(:user_id).uniq.size
             user_count = user_count + effictive_users.select{|answer| answer.exercise_choice_id == s && answer.answer_text == s_choice_text}.size