|
|
@ -139,7 +139,6 @@ class MyshixunsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
uid_logger("#############status: #{status}")
|
|
|
|
uid_logger("#############status: #{status}")
|
|
|
|
uid_logger("#############resubmit: #{resubmit}")
|
|
|
|
|
|
|
|
record = EvaluateRecord.where(:game_id => game_id).first
|
|
|
|
record = EvaluateRecord.where(:game_id => game_id).first
|
|
|
|
logger.info("training_task_status start#3**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
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_percentage = (100 - game.answer_deduction) / 100.to_f # 查看答案后剩余分数的百分比.
|
|
|
@ -147,6 +146,7 @@ class MyshixunsController < ApplicationController
|
|
|
|
# status:0表示评测成功
|
|
|
|
# status:0表示评测成功
|
|
|
|
if status == "0"
|
|
|
|
if status == "0"
|
|
|
|
if resubmit.present?
|
|
|
|
if resubmit.present?
|
|
|
|
|
|
|
|
uid_logger("#############resubmit: #{resubmit}")
|
|
|
|
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
|
|
|
|
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
|
|
|
|
challenge.path.split(";").each do |path|
|
|
|
|
challenge.path.split(";").each do |path|
|
|
|
|
game_passed_code(path.try(:strip), myshixun, game_id)
|
|
|
|
game_passed_code(path.try(:strip), myshixun, game_id)
|
|
|
|