|
|
@ -429,7 +429,7 @@ class StudentWorksController < ApplicationController
|
|
|
|
def shixun_work_report
|
|
|
|
def shixun_work_report
|
|
|
|
@user = @work.user
|
|
|
|
@user = @work.user
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
@games = @work.myshixun.games.includes(:challenge) if @work.myshixun
|
|
|
|
@games = @work.myshixun.games.includes(:challenge, :game_codes, :outputs) if @work.myshixun
|
|
|
|
|
|
|
|
|
|
|
|
# 用户最大评测次数
|
|
|
|
# 用户最大评测次数
|
|
|
|
@user_evaluate_count = @games.sum(:evaluate_count) if @games
|
|
|
|
@user_evaluate_count = @games.sum(:evaluate_count) if @games
|
|
|
@ -440,7 +440,7 @@ class StudentWorksController < ApplicationController
|
|
|
|
def export_shixun_work_report
|
|
|
|
def export_shixun_work_report
|
|
|
|
@user = @work.user
|
|
|
|
@user = @work.user
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
@shixun = @homework.shixuns.take
|
|
|
|
@games = @work.myshixun.games.includes(:challenge, :game_codes) if @work.myshixun
|
|
|
|
@games = @work.myshixun.games.includes(:challenge, :game_codes, :outputs) if @work.myshixun
|
|
|
|
|
|
|
|
|
|
|
|
# 用户最大评测次数
|
|
|
|
# 用户最大评测次数
|
|
|
|
@user_evaluate_count = @games.sum(:evaluate_count) if @games
|
|
|
|
@user_evaluate_count = @games.sum(:evaluate_count) if @games
|
|
|
|