实训关卡列表问题

schedule_job
daiao 5 years ago
parent 774013abd3
commit ab2f783801

@ -164,7 +164,7 @@ class ChallengesController < ApplicationController
@challenges = @shixun.challenges.joins(join_sql).select(base_columns).uniq @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("########shixun_modify#{@shixun_modify}")
logger.info("########challenges.size#{@challenges.size}") logger.info("########challenges.size#{@challenges.size}")

Loading…
Cancel
Save