Ucloud测试版:在线测验【允许学生查看结果】无法取消

This commit is contained in:
cxt 2017-03-03 18:51:55 +08:00
parent 1fb0160ae5
commit 20cfeba57f
1 changed files with 1 additions and 1 deletions

View File

@ -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