From 9dd0bc4a93d2a45381d4c6829c272b9d14a95462 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 4 May 2016 00:34:48 +0530 Subject: minor changes in views --- yaksh/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/views.py') diff --git a/yaksh/views.py b/yaksh/views.py index 1cda4ab..9be2c02 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -472,7 +472,7 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None): new_answer.error = result.get('error') new_answer.save() paper.update_marks('inprogress') - paper.update_time(datetime.now()) + paper.set_end_time(datetime.now()) if not result.get('success'): # Should only happen for non-mcq questions. new_answer.answer = user_code new_answer.save() -- cgit