dev_forum
jingquan huang 6 years ago
parent 493e07e455
commit e3f125a63c

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

@ -140,7 +140,7 @@ class MyshixunsController < ApplicationController
end
end
uid_logger("#############status: #{status}")
record = EvaluateRecord.where(:sec_key => sec_key).first
record = EvaluateRecord.where(:identifier => sec_key).first
logger.info("training_task_status start#3**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
answer_deduction_percentage = (100 - game.answer_deduction) / 100.to_f # 查看答案后剩余分数的百分比.
# answer_deduction是查看答案的扣分比例

Loading…
Cancel
Save