diff options
author | maheshgudi | 2017-09-05 15:27:31 +0530 |
---|---|---|
committer | maheshgudi | 2017-09-05 15:27:31 +0530 |
commit | 09931d64e05378143a9a1f2e634fc447f935d873 (patch) | |
tree | c644e44b0cefa1c32e4ff02cfe6ed347dfe1e5df /yaksh/views.py | |
parent | 413066da15825ae37c15134536102ada3988e9a6 (diff) | |
download | online_test-09931d64e05378143a9a1f2e634fc447f935d873.tar.gz online_test-09931d64e05378143a9a1f2e634fc447f935d873.tar.bz2 online_test-09931d64e05378143a9a1f2e634fc447f935d873.zip |
Fixes minor mistake.
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |