|
|
|
@ -3,7 +3,7 @@ class Users::ShixunsController < Users::BaseController
|
|
|
|
|
shixuns = Users::ShixunService.new(observed_user, query_params).call
|
|
|
|
|
|
|
|
|
|
@count = shixuns.count
|
|
|
|
|
@shixuns = paginate(shixuns.includes(:first_tag_repertoire), special: true)
|
|
|
|
|
@shixuns = paginate(shixuns.includes(:first_tag_repertoire), special: observed_user.is_teacher?)
|
|
|
|
|
|
|
|
|
|
ids = @shixuns.map(&:id)
|
|
|
|
|
@finished_challenges_count_map = Game.joins(:myshixun).where(user_id: observed_user.id, status: 2)
|
|
|
|
|