|
|
|
@ -230,7 +230,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
limit = params[:limit] || 20
|
|
|
|
|
@student_works = @student_works.page(page).per(limit)
|
|
|
|
|
if @homework.homework_type == "practice"
|
|
|
|
|
@student_works = @student_works.includes(:student_works_scores, :shixun_work_comments, user: :user_extension, myshixun: :games)
|
|
|
|
|
@student_works = @student_works.includes(:student_works_scores, :shixun_work_comments, :challenge_work_scores, user: :user_extension, myshixun: :games)
|
|
|
|
|
else
|
|
|
|
|
@student_works = @student_works.includes(:student_works_scores, :project, user: :user_extension)
|
|
|
|
|
end
|
|
|
|
|