From a578bfcbb04f4fa2702d1d141027b7e4928b71ef Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sun, 9 Feb 2020 10:07:27 +0800 Subject: [PATCH] 1 --- app/controllers/challenges_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/challenges_controller.rb b/app/controllers/challenges_controller.rb index bcc9c4771..080bdac85 100644 --- a/app/controllers/challenges_controller.rb +++ b/app/controllers/challenges_controller.rb @@ -227,10 +227,10 @@ class ChallengesController < ApplicationController @challenge.update_attributes(picture_path: nil, web_route: nil, expect_picture_path: nil, original_picture_path: nil) end # 关卡评测执行文件如果被修改,需要修改脚本内容 - unless @shixun.published + #unless @shixun.published script = modify_shixun_script @shixun, @shixun.evaluate_script @shixun.shixun_info.update_column(:evaluate_script, script) - end + #end # TODO: # if path != params[:challenge][:path] # shixun_modify_status_without_publish(@shixun, 1) @@ -238,8 +238,8 @@ class ChallengesController < ApplicationController #Attachment.attach_files(@challenge, params[:attachments]) end - end rescue Exception => e + end logger.error("##update_challenges: ##{e.message}") tip_exception("#{e.message}") end