diff options
author | maheshgudi | 2017-01-21 11:54:38 +0530 |
---|---|---|
committer | maheshgudi | 2017-01-21 12:46:30 +0530 |
commit | e8f752650a63c0bc50dd67c2fedf24444f20fcae (patch) | |
tree | 6d5981b179bce4299cf58b438980df59567bf8fb | |
parent | bfc97a55dddb4e1c3b6c49cc0a0f963e9b8a744c (diff) | |
download | online_test-e8f752650a63c0bc50dd67c2fedf24444f20fcae.tar.gz online_test-e8f752650a63c0bc50dd67c2fedf24444f20fcae.tar.bz2 online_test-e8f752650a63c0bc50dd67c2fedf24444f20fcae.zip |
monitor sorts wrt to highest score. removed quiz instructions from models.
-rw-r--r-- | yaksh/models.py | 37 | ||||
-rw-r--r-- | yaksh/templates/yaksh/monitor.html | 6 |
2 files changed, 3 insertions, 40 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 8d4f930..652545d 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -68,43 +68,6 @@ test_status = ( ('completed', 'Completed'), ) -instructions_data = dedent("""\ - <p> - This examination system has been developed with the intention of - making you learn programming and be assessed in an interactive and - fun manner. You will be presented with a series of programming questions - and problems that you will answer online and get immediate - feedback for. - </p> - <p> - Here are some important instructions and rules that you should - understand carefully.</p> - <ul> - <li>For any programming questions, you can submit solutions as many - times as you want without a penalty. You may skip questions - and solve them later.</li> - <li> You <strong>may</strong> use your computer's Python/IPython - shell or an editor to solve the problem and cut/paste the - solution to the web interface. - </li> - <li> <strong>You are not allowed to use any internet resources, - i.e. no google etc.</strong> - </li> - <li> Do not copy or share the questions or answers with anyone - until the exam is complete <strong>for everyone</strong>. - </li> - <li> <strong>All</strong> your attempts at the questions are logged. - Do not try to outsmart and break the testing system. - If you do, we know who you are and we will expel you from the - course. You have been warned. - </li> - </ul> - <p> - We hope you enjoy taking this - exam !!! - </p> - """) - def get_assignment_dir(instance, filename): return '%s/%s/%s' % (instance.user.user, instance.assignmentQuestion.id, filename) diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html index 0ad6401..b84f050 100644 --- a/yaksh/templates/yaksh/monitor.html +++ b/yaksh/templates/yaksh/monitor.html @@ -11,10 +11,10 @@ <script type="text/javascript"> $(document).ready(function() { - $("#result-table").tablesorter(); - } -); + $("#result-table").tablesorter({sortList: [[5,1]]}); + }); </script> + {% endblock %} |