diff --git a/app/controllers/challenges_controller.rb b/app/controllers/challenges_controller.rb index 527ba4f05..4e043e799 100644 --- a/app/controllers/challenges_controller.rb +++ b/app/controllers/challenges_controller.rb @@ -164,7 +164,7 @@ class ChallengesController < ApplicationController @challenges = @shixun.challenges.joins(join_sql).select(base_columns).uniq - @shixun_modify = (@challenges.select{|c| c.status.present? }.size == @challenges.size) + @shixun_modify = (@challenges.select{|c| !c.status.nil? }.size == @challenges.size) logger.info("########shixun_modify:#{@shixun_modify}") logger.info("########challenges.size:#{@challenges.size}")