Ucloud测试版:在线测验【允许学生查看结果】无法取消
This commit is contained in:
parent
1fb0160ae5
commit
20cfeba57f
|
@ -133,7 +133,7 @@ class ExerciseController < ApplicationController
|
|||
@exercise.time = params[:exercise][:time].blank? ? -1 : params[:exercise][:time]
|
||||
@exercise.end_time = Time.at(params[:exercise][:end_time].to_time.to_i + 16*60*60 -1)
|
||||
@exercise.publish_time = params[:exercise][:publish_time]
|
||||
@exercise.show_result = params[:show_result].blank? ? 1 : params[:show_result]
|
||||
@exercise.show_result = params[:show_result] ? 1 : 0
|
||||
@exercise.question_random = params[:question_random] ? 0 : 1
|
||||
@exercise.choice_random = params[:choice_random] ? 0 : 1
|
||||
if @exercise.save
|
||||
|
|
Loading…
Reference in New Issue