|
|
@ -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)
|
|
|
|