编辑技能标签不应该报云平台繁忙

This commit is contained in:
daiao 2017-08-10 11:22:42 +08:00
parent 272368ed9e
commit c278a4ea56
1 changed files with 3 additions and 2 deletions

View File

@ -173,6 +173,8 @@ class ChallengesController < ApplicationController
end
end
end
# 向jenkins端发送请求构建公共测试用例
add_shixun_modify_status(@shixun, 1)
elsif params[:tab].to_i == 5
@challenge_tags.delete_all unless @challenge_tags.blank?
unless params[:knowledge].blank?
@ -181,8 +183,7 @@ class ChallengesController < ApplicationController
end
end
end
# 向jenkins端发送请求构建公共测试用例
add_shixun_modify_status(@shixun, 1)
redirect_to edit_shixun_challenge_path(@challenge, :shixun_id => @shixun, :tab => params[:tab])
rescue Exception => e
flash[:error] = "#{e.message}"