summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index af7951f..ba957db 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -424,7 +424,7 @@ def start(request, questionpaper_id=None, attempt_num=None):
if not last_attempt:
attempt_number = 1
else:
- last_attempt.attempt_number + 1
+ attempt_number = last_attempt.attempt_number + 1
context = {
'user': user,
'questionpaper': quest_paper,