Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
cxt 5 years ago
commit 8ff6aaa20a

@ -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

Loading…
Cancel
Save