|
|
@ -450,7 +450,7 @@ class SubjectsController < ApplicationController
|
|
|
|
@time = 0
|
|
|
|
@time = 0
|
|
|
|
@user_tags = []
|
|
|
|
@user_tags = []
|
|
|
|
else
|
|
|
|
else
|
|
|
|
pass_challenge_ids = pass_games.map(&:challenge_id)
|
|
|
|
pass_challenge_ids = pass_games.map(&:challenge_id).uniq # 按道理是不用去重的,但是历史数据与重复
|
|
|
|
subject_challenge_count = @subject.shixuns.sum(:challenges_count)
|
|
|
|
subject_challenge_count = @subject.shixuns.sum(:challenges_count)
|
|
|
|
# 用户通关获得的标签
|
|
|
|
# 用户通关获得的标签
|
|
|
|
@user_tags = ChallengeTag.where(challenge_id: pass_challenge_ids).pluck(:name)
|
|
|
|
@user_tags = ChallengeTag.where(challenge_id: pass_challenge_ids).pluck(:name)
|
|
|
|