|
|
|
@ -87,7 +87,7 @@ class Subject < ApplicationRecord
|
|
|
|
|
pluck(:challenge_id).uniq.size
|
|
|
|
|
logger.info("#-----------")
|
|
|
|
|
new_challenge_count = Challenge.left_joins(:games)
|
|
|
|
|
.where(games: {user_id: current_user.id, status: 2}, shixun_id: shixuns.published_closed)
|
|
|
|
|
.where(games: {user_id: User.current.id, status: 2}, shixun_id: shixuns.published_closed)
|
|
|
|
|
.uniq.count
|
|
|
|
|
logger.info("#-----------")
|
|
|
|
|
subject_challenge_count = shixuns.challenges_count
|
|
|
|
|