打印评测次数

dev_course
daiao 6 years ago
parent a588202c5d
commit 1e8550a825

@ -432,6 +432,7 @@ class StudentWorksController < ApplicationController
@games = @work.myshixun.games.includes(:challenge, :game_codes, :outputs) if @work.myshixun @games = @work.myshixun.games.includes(:challenge, :game_codes, :outputs) if @work.myshixun
# 用户最大评测次数 # 用户最大评测次数
logger.info("-----------#{@games.map(&:evaluate_count)}")
@user_evaluate_count = @games.sum(:evaluate_count) if @games @user_evaluate_count = @games.sum(:evaluate_count) if @games
# 图形效率图的数据 # 图形效率图的数据
@echart_data = student_efficiency(@homework, @work) @echart_data = student_efficiency(@homework, @work)

Loading…
Cancel
Save