diff options
author | Prabhu Ramachandran | 2018-03-21 18:11:32 +0530 |
---|---|---|
committer | GitHub | 2018-03-21 18:11:32 +0530 |
commit | b569eec5ef66b13eca8b6895802f4ee40cdb568d (patch) | |
tree | 31bcd3d4a8eec287b201ab69893be908bea5db4e /yaksh/views.py | |
parent | 06abd01fd28eb10aafd18dd60b790549e0233edc (diff) | |
parent | 4a5463d753c9af41d85a6be33257012c17d2ab15 (diff) | |
download | online_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.tar.gz online_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.tar.bz2 online_test-b569eec5ef66b13eca8b6895802f4ee40cdb568d.zip |
Merge pull request #429 from maheshgudi/shuffle_testcases
Shuffle testcases
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 011b417..27a07d2 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -616,7 +616,10 @@ def show_question(request, question, paper, error_message=None, notification=Non if question.type == "code" else 'You have already attempted this question' ) - test_cases = question.get_test_cases() + if question.type in ['mcc', 'mcq']: + test_cases = question.get_ordered_test_cases(paper) + else: + test_cases = question.get_test_cases() files = FileUpload.objects.filter(question_id=question.id, hide=False) course = Course.objects.get(id=course_id) module = course.learning_module.get(id=module_id) |