diff options
author | adityacp | 2016-03-11 16:09:36 +0530 |
---|---|---|
committer | adityacp | 2016-03-11 16:09:36 +0530 |
commit | f2e83a9b3a3c44870becc57ee25a2bff0bf38155 (patch) | |
tree | af9d34e13612f6967c9b2ad69af33308dd64ffad | |
parent | 7691c6f9331d414e214ea6a0e9a8154bb3d07a27 (diff) | |
download | online_test-f2e83a9b3a3c44870becc57ee25a2bff0bf38155.tar.gz online_test-f2e83a9b3a3c44870becc57ee25a2bff0bf38155.tar.bz2 online_test-f2e83a9b3a3c44870becc57ee25a2bff0bf38155.zip |
small change in views.py
-rw-r--r-- | yaksh/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 25057d7..986038d 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1054,11 +1054,11 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None): 'to_attempt': to_attempt, 'submitted': submitted, 'error_message': msg} ci = RequestContext(request) - + elif question.type == 'code' and user_answer: msg = "Correct Output" success = "True" - next_q = paper.completed_question(question.id) + paper.completed_question(question.id) time_left = paper.time_left() questions, to_attempt, submitted = get_questions(paper) context = {'question': question, 'paper': paper, @@ -1067,12 +1067,12 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None): 'to_attempt': to_attempt, 'submitted': submitted, 'error_message': msg, 'success': success} ci = RequestContext(request) - + else: next_q = paper.completed_question(question.id) return show_question(request, next_q, attempt_num, questionpaper_id, success_msg) - + return my_render_to_response('yaksh/question.html', context, context_instance=ci) |