diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index 9b32358bd..d12913852 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -431,7 +431,7 @@ class StudentWorksController < ApplicationController @user = @work.user @shixun = @homework.shixuns.take # 提示: 这里如果includes outputs表的话: sum(:evaluate_count)会出现错误 - @games = @work.myshixun.games if @work.myshixun + @games = @work.myshixun.games.joins(:challenge).reorder("challenges.position asc") if @work.myshixun # 用户最大评测次数 if @games