实训报告超时

dev_course
daiao 6 years ago
parent 899c7fb673
commit 9642805db1

@ -429,7 +429,7 @@ class StudentWorksController < ApplicationController
def shixun_work_report
@user = @work.user
@shixun = @homework.shixuns.take
@games = @work.myshixun.games.includes(:challenge, :game_codes,:outputs) if @work.myshixun
@games = @work.myshixun.games.includes(:challenge) if @work.myshixun
# 用户最大评测次数
@user_evaluate_count = @games.inject(0){|sum, g| sum + g.outputs.pluck(:query_index).first.to_i } if @games

Loading…
Cancel
Save