diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index c8cbde626..af2a25f1d 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -243,7 +243,7 @@ class StudentWorkController < ApplicationController (SELECT COUNT(*) FROM `student_works_evaluation_distributions` WHERE user_id = student_works.user_id AND student_work_id IN #{work_ids}) AS all_count, (SELECT COUNT(*) FROM `student_works_scores` WHERE user_id = student_works.user_id AND student_work_id IN #{work_ids}) AS has_count FROM `student_works` - WHERE homework_common_id = 213 + WHERE homework_common_id = #{@homework.id} ) AS table_1 ORDER BY absence #{order}") @order = order == "desc" ? "asc" : "desc"