dev_local
daiao 6 years ago
parent f5f586f964
commit d5b8cb0390

@ -557,7 +557,8 @@ class MyshixunsController < ApplicationController
if !resubmit.blank?
game.update_attributes!(:retry_status => 1, :resubmit_identifier => resubmit)
else
game.update_attributes!(:status => 0)
score = ((challenge.score * test_set_score) / 100.to_f).to_i
game.update_attributes!(:status => 0, :final_score => score)
end
end
test_cases_time = format("%.3f", (Time.now.to_f - t1.to_f)).to_f

Loading…
Cancel
Save