summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py8
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)