.
This commit is contained in:
@@ -11,6 +11,19 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<br /> Total mark: {{ total_score }} / {{max_score}}
|
||||
<div>
|
||||
<h4>Answers</h4>
|
||||
<ul>{% for answer in answer_text %}
|
||||
<li class="user-answer-li">Observation</br>{{answer[0]}}</li>
|
||||
<li class="user-answer-li">Interpretation</br>{{answer[1]}}</li>
|
||||
<li class="user-answer-li">Principle Diagnosis</br>{{answer[2]}}</li>
|
||||
<li class="user-answer-li">Differential Diagnosis</br>{{answer[3]}}</li>
|
||||
<li class="user-answer-li">Management</br>{{answer[4]}}</li>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<a href="{% url 'cid_scores' cid %}">Other exams</a>
|
||||
</div>
|
||||
|
||||
@@ -889,21 +889,27 @@ def exam_scores_cid_user(request, pk, sk):
|
||||
#answers_and_marks = []
|
||||
answers_marks = []
|
||||
#answers = []
|
||||
answer_text = []
|
||||
|
||||
for q in questions:
|
||||
# Get user answer
|
||||
user_answer = q.cid_user_answers.filter(cid=cid).first()
|
||||
|
||||
|
||||
|
||||
|
||||
if not user_answer or user_answer is None:
|
||||
# skip if no answer
|
||||
#answers_marks.append("")
|
||||
#answers.append("")
|
||||
answer_score = 4
|
||||
#ans = "Not answered"
|
||||
answer_text.append("Not answered")
|
||||
else:
|
||||
answer_score = user_answer.get_answer_score()
|
||||
|
||||
answer_text.append((answer_observations, answer_interpretation, answer_principle_diagnosis, answer_differential_diagnosis, answer_management))
|
||||
|
||||
if not exam.publish_results:
|
||||
answer_score = 0
|
||||
#answers.append(ans)
|
||||
@@ -931,6 +937,7 @@ def exam_scores_cid_user(request, pk, sk):
|
||||
"answers_marks": answers_marks,
|
||||
"total_score": total_score,
|
||||
"max_score": max_score,
|
||||
"answer_text": answer_text
|
||||
#"answers_and_marks": answers_and_marks,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user