diff options
author | ankitjavalkar | 2020-05-21 17:33:23 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-05-21 17:33:23 +0530 |
commit | bff6dc7a6234535df8143cd35fa455333a4eefab (patch) | |
tree | 765761369e4ac31e2fe828cb050d8d1c6785f855 /yaksh/views.py | |
parent | d269458a198ba03035ade1fe83cc05eb5a2947b2 (diff) | |
download | online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.tar.gz online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.tar.bz2 online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.zip |
Fix check condition and alter tests
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 44c3940..d8502a3 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -743,7 +743,7 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None, if request.method == 'POST': # Add the answer submitted, regardless of it being correct or not. - if paper.time_left() <= 0 or questionpaper.can_attempt_now(user, course_id)[0]: + if paper.time_left() <= 0 or not questionpaper.can_attempt_now(user, course_id)[0]: reason = 'Your time is up!' return complete( request, reason, paper.attempt_number, paper.question_paper.id, |