修复实训评论数不对的情况

dev_trainings
daiao 6 years ago
parent 5d14b1862f
commit f1f3c69c4a

@ -33,7 +33,7 @@ class GamesService
st = game_challenge.st st = game_challenge.st
game_count = myshixun.games.count game_count = myshixun.games.count
discusses_count = (current_user.admin? ? shixun.discusses.count : discusses_count = (current_user.admin? ? shixun.discusses.count :
shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id)) shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id).count)
mirror_name = myshixun.mirror_name mirror_name = myshixun.mirror_name
user = myshixun.owner user = myshixun.owner
username = user.show_name username = user.show_name

Loading…
Cancel
Save