|
|
@ -431,7 +431,7 @@ class StudentWorksController < ApplicationController
|
|
|
|
@user = @work.user
|
|
|
|
@user = @work.user
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
# 提示: 这里如果includes outputs表的话: sum(:evaluate_count)会出现错误
|
|
|
|
# 提示: 这里如果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
|
|
|
|
if @games
|
|
|
|