From f2e83a9b3a3c44870becc57ee25a2bff0bf38155 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 11 Mar 2016 16:09:36 +0530 Subject: small change in views.py --- yaksh/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'yaksh') 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) -- cgit