|
|
|
@ -47,7 +47,7 @@ class GamesController < ApplicationController
|
|
|
|
|
max_query_index = @game.query_index.to_i
|
|
|
|
|
|
|
|
|
|
# 统计评测时间
|
|
|
|
|
record_onsume_time = EvaluateRecord.where(game_id: @game.id).first.try(:consume_time)
|
|
|
|
|
record_onsume_time = EvaluateRecord.where(game_id: @game.id).first.try(:pod_execute)
|
|
|
|
|
|
|
|
|
|
# myshixun_manager判断用户是否有权限查看隐藏测试集(TPM管理员;平台认证的老师;花费金币查看者)
|
|
|
|
|
myshixun_manager = @identity < User::EDU_GAME_MANAGER
|
|
|
|
@ -758,7 +758,7 @@ class GamesController < ApplicationController
|
|
|
|
|
web_route = game_challenge.try(:web_route)
|
|
|
|
|
mirror_name = @shixun.mirror_name
|
|
|
|
|
|
|
|
|
|
e_record = EvaluateRecord.where(:sec_key => sec_key).first
|
|
|
|
|
e_record = EvaluateRecord.where(:identifier => sec_key).first
|
|
|
|
|
# 轮询结束,更新评测统计耗时
|
|
|
|
|
if game_status == 0 || game_status == 2
|
|
|
|
|
|
|
|
|
|