From 979ce81f0a275a22a4e9ca875c7f5c36dab7d44a Mon Sep 17 00:00:00 2001
From: prathamesh
Date: Fri, 12 Aug 2016 14:59:46 +0530
Subject: Removed for loop from the question template.
Once the code question is correct, user must see the message Correct
Output for two seconds and then url redirection.
But since this was written in a for loop, so
multiple requests almost simultaneously were sent by a single user.
This caused the server to go down. For now removed for loop.
---
yaksh/templates/yaksh/question.html | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 2d52009..73d851a 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -89,9 +89,7 @@ function call_skip(url)
{% if paper.questions_left %}
window.setTimeout(function()
{
- {% for qid in paper.questions.all %}
- location.href="{{ URL_ROOT }}/exam/{{ qid.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/"
- {% endfor %}
+ location.href="{{ URL_ROOT }}/exam/{{ paper.current_question.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/"
}, 2000);
{% else %}
window.setTimeout(function()
--
cgit
From 23ce8a47eeacba027ca35d6f0bcbd3ff78692913 Mon Sep 17 00:00:00 2001
From: ankitjavalkar
Date: Fri, 19 Aug 2016 10:58:44 +0530
Subject: - Modify admin.py to include Course model - Modify user.html and
complete.html to include id for html elements
---
yaksh/templates/user.html | 2 +-
yaksh/templates/yaksh/complete.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html
index 4074656..009dd2f 100644
--- a/yaksh/templates/user.html
+++ b/yaksh/templates/user.html
@@ -34,7 +34,7 @@