From 09931d64e05378143a9a1f2e634fc447f935d873 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Tue, 5 Sep 2017 15:27:31 +0530 Subject: Fixes minor mistake. --- yaksh/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaksh/views.py b/yaksh/views.py index 7898d57..1c6feca 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -423,7 +423,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 if attempt_num is None: context = { 'user': user, -- cgit