diff options
author | ankitjavalkar | 2017-03-03 19:16:46 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-03-06 17:35:17 +0530 |
commit | c118c7eff7abaeba18f7c375828d2e022d21cb9f (patch) | |
tree | 1fcfb472fc0b5f811733f7b010176003858676cc /yaksh/views.py | |
parent | d0d4c9ab3a409c68766bc044825bf22b0519f6a3 (diff) | |
download | online_test-c118c7eff7abaeba18f7c375828d2e022d21cb9f.tar.gz online_test-c118c7eff7abaeba18f7c375828d2e022d21cb9f.tar.bz2 online_test-c118c7eff7abaeba18f7c375828d2e022d21cb9f.zip |
Modify UI for notifications in submitted code questions
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 163c12f..1089067 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -413,7 +413,9 @@ def show_question(request, question, paper, error_message=None, notification=Non reason='Your time is up!' return complete(request, reason, paper.attempt_number, paper.question_paper.id) if question in paper.questions_answered.all(): - notification = 'You have already attempted this question' + notification = 'You have already attempted this question successfully' \ + if question.type == "code" else \ + 'You have already attempted this question' test_cases = question.get_test_cases() files = FileUpload.objects.filter(question_id=question.id, hide=False) context = {'question': question, 'paper': paper, 'error_message': error_message, |