|
|
@ -43,6 +43,7 @@ class ExportShixunReportService
|
|
|
|
@user = @work.user
|
|
|
|
@user = @work.user
|
|
|
|
@shixun = homework.shixuns.take
|
|
|
|
@shixun = homework.shixuns.take
|
|
|
|
@games = @work.myshixun.games.includes(:challenge, :game_codes,:outputs) if @work.myshixun
|
|
|
|
@games = @work.myshixun.games.includes(:challenge, :game_codes,:outputs) if @work.myshixun
|
|
|
|
|
|
|
|
@challenges = @shixun.challenges if @shixun
|
|
|
|
|
|
|
|
|
|
|
|
# 用户最大评测次数
|
|
|
|
# 用户最大评测次数
|
|
|
|
@user_evaluate_count = @games.pluck(:evaluate_count).sum if @games
|
|
|
|
@user_evaluate_count = @games.pluck(:evaluate_count).sum if @games
|
|
|
|