修改状态更新
This commit is contained in:
parent
da55b00da7
commit
c0dfc17b19
|
@ -443,7 +443,8 @@ class ExerciseController < ApplicationController
|
|||
# REDO: 提示提交成功
|
||||
else
|
||||
# 更新提交状态
|
||||
@exercise.exercise_users.first.update_attributes(:status => true)
|
||||
cur_exercise_user = ExerciseUser.where("user_id =? and exercise_id=?", User.current, @exercise.id).first
|
||||
cur_exercise_user.update_attributes(:status => 1)
|
||||
# 答题过程中需要统计完成量
|
||||
@uncomplete_question = get_uncomplete_question(@exercise, User.current)
|
||||
# 获取改学生的考试得分
|
||||
|
|
Loading…
Reference in New Issue