From 278cec416d068be6f63af266f9f0e5528bb1c9b0 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 26 Mar 2020 11:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=88=9B=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E7=A1=AE=E5=AE=9A=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercises_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 7cfb1f82c..4247a0619 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -136,7 +136,8 @@ class ExercisesController < ApplicationController :user_id => current_user.id, :course_id => @course.id, :time => -1, - :exercise_status => 1 + :exercise_status => 1, + :is_md => params[:md] } @exercise = Exercise.create!(exercise_options) end