|
|
@ -1201,7 +1201,7 @@ class ExercisesController < ApplicationController
|
|
|
|
# 分页
|
|
|
|
# 分页
|
|
|
|
@page = params[:page] || 1
|
|
|
|
@page = params[:page] || 1
|
|
|
|
@limit = params[:limit] || 20
|
|
|
|
@limit = params[:limit] || 20
|
|
|
|
@exercise_users_list = @exercise_users_list.page(@page).per(@limit)
|
|
|
|
@exercise_users_list = @exercise_users_list.preload(:exercise_user_scores, user: :user_extension).page(@page).per(@limit)
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@exercise_users_list = []
|
|
|
|
@exercise_users_list = []
|
|
|
|