summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormahesh2016-05-04 00:34:48 +0530
committermahesh2016-05-04 11:52:02 +0530
commit9dd0bc4a93d2a45381d4c6829c272b9d14a95462 (patch)
tree4173a4329b2443c9dd45e8896cfc376d8a496ad5 /yaksh
parenta7ef62d72766aff059ae121009cd073a8c5cefc7 (diff)
downloadonline_test-9dd0bc4a93d2a45381d4c6829c272b9d14a95462.tar.gz
online_test-9dd0bc4a93d2a45381d4c6829c272b9d14a95462.tar.bz2
online_test-9dd0bc4a93d2a45381d4c6829c272b9d14a95462.zip
minor changes in views
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py2
1 files changed, 1 insertions, 1 deletions
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()