From 6755a1604094e601fc6df88929841b5a06690c90 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Thu, 1 Dec 2011 16:22:54 +0530 Subject: Clean up question template and speed up monitor For a bash question we now put a #!/bin/bash at the top. We now use annotations to speed up the monitor page rendering rather than doing the sort in Python which ends up being inefficient due to the db calls. I get a roughly 5x improvement in speed. --- templates/exam/question.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/exam/question.html b/templates/exam/question.html index 62b8b3d..8b589b6 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -65,7 +65,7 @@ function update_time() {{option}}
{% endfor %} {% else %} - + {% endif %}
{% if question.type == "mcq" %} -- cgit