{{ attempt.evaluation.title }}
Resultado del intento
{% if attempt.passed %}
APROBADO
{% else %}
NO APROBADO
{% endif %}
{{ "%.1f"|format(attempt.score) }}%
Puntuación obtenida
{{ attempt.evaluation.passing_score }}%
Puntuación mínima
{{ attempt.submitted_at.strftime('%d/%m/%Y %H:%M') }}
Fecha de envío
Este intento fue enviado después de la fecha límite y se aplicó una penalización.
{% endif %}
Detalles de respuestas
{% for answer in attempt.answers %} {% set question = answer.question %}Pregunta {{ loop.index }}
{{ question.text }}
{% if question.type == "boolean" %} {% if answer.selected_option_ids %} {% set selected_ids = answer.selected_option_ids | fromjson %} {% for option_id in selected_ids %} {% set option = question.options | selectattr("id", "equalto", option_id) | first %}Tu respuesta: {{ option.text }}
{% endfor %} {% endif %} {% elif question.type == "multiple" %} {% if answer.selected_option_ids %} {% set selected_ids = answer.selected_option_ids | fromjson %}Tus respuestas:
-
{% for option_id in selected_ids %} {% set option = question.options |
selectattr("id", "equalto", option_id) | first %}
- {{ option.text }} {% endfor %}
Respuestas correctas:
-
{% for option in question.options %} {% if option.is_correct %}
- {{ option.text }} {% endif %} {% endfor %}
Explicación:
{{ question.explanation }}
{% set is_correct = false %} {% if answer.selected_option_ids %} {% set
selected_ids = answer.selected_option_ids | fromjson %} {% set correct_ids
= question.options | selectattr("is_correct", "equalto", true) |
map(attribute="id") | list %} {% if selected_ids | sort == correct_ids |
sort %} {% set is_correct = true %} {% endif %} {% endif %} {% if
is_correct %}
Correcta
{% else %}
Incorrecta
{% endif %}