测试集通过的个数问题

dev_aliyun2
daiao 5 years ago committed by harry
parent 05ac23efc0
commit 074a7230ca

@ -72,8 +72,8 @@ class HackUserLastestCodesController < ApplicationController
def record_detail
@hack_user = HackUserCode.find params[:id]
set = HackSet.find_by(id: @hack_user.error_test_set_id)
@pass_set_count = set ? set.position - 1 : 0
@set_count = @hack_user.hack.hack_sets.count
@pass_set_count = set ? set.position - 1 : (@hack_user.status == 0 ? @set_count : 0)
@my_hack = @hack_user.hack_user_lastest_code
end

Loading…
Cancel
Save