From 715e50397da5189ae94e2824dc35bd2aaeebfc87 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 17 Oct 2017 09:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=87=8D=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=85=B3=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/myshixuns_controller.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 9ab8c3d94..5e7b8b4f6 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -71,18 +71,7 @@ class MyshixunsController < ApplicationController shixun = @myshixun.shixun @challenges = shixun.challenges # 删除选择题用户记录 - unless @challenges.blank? - @challenges.each do |challenge| - if challenge.st != 0 - challenge.challenge_chooses.each do |choose| - user_output = choose.choose_outputs - unless user_output.blank? - user_output.delete - end - end - end - end - end + #end myshixun_job = Base64.urlsafe_encode64("myshixun_#{@myshixun.id}") StudentWork.where(:myshixun_id => @myshixun.id).update_all(:myshixun_id => nil, :work_status => 0)