diff options
author | ankitjavalkar | 2019-01-29 14:55:56 +0530 |
---|---|---|
committer | GitHub | 2019-01-29 14:55:56 +0530 |
commit | cedceac0c7b64e2116b5cfd5ec9461fdff98842c (patch) | |
tree | 41081e047397ab7717b61c6bb4b08cb948eca7f5 /yaksh/views.py | |
parent | a70751c25afd688f20ee46924c5ddc591c89f7e1 (diff) | |
parent | 010d302e9b925736674ce5c5eda4f6a7ffbebb98 (diff) | |
download | online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.tar.gz online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.tar.bz2 online_test-cedceac0c7b64e2116b5cfd5ec9461fdff98842c.zip |
Merge pull request #528 from CruiseDevice/fix-legend
Fix legend on Quiz interface
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 0f81931..6c7a12e 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -615,7 +615,6 @@ def show_question(request, question, paper, error_message=None, course = Course.objects.get(id=course_id) module = course.learning_module.get(id=module_id) all_modules = course.get_learning_modules() - all_question_types = [types[0] for types in question_types] context = { 'question': question, 'paper': paper, @@ -631,7 +630,6 @@ def show_question(request, question, paper, error_message=None, 'delay_time': delay_time, 'quiz_type': quiz_type, 'all_modules': all_modules, - "question_types": all_question_types } answers = paper.get_previous_answers(question) if answers: @@ -905,8 +903,10 @@ def complete(request, reason=None, attempt_num=None, questionpaper_id=None, """Show a page to inform user that the quiz has been completed.""" user = request.user if questionpaper_id is None: - message = (reason or "An Unexpected Error occurred. Please contact your" - " instructor/administrator.") + message = ( + reason or "An Unexpected Error occurred." + " Please contact your instructor/administrator." + ) context = {'message': message} return my_render_to_response(request, 'yaksh/complete.html', context) else: |