diff --git a/demo/demo.yaml b/demo/demo.yaml index 73e044d..3045671 100644 --- a/demo/demo.yaml +++ b/demo/demo.yaml @@ -35,7 +35,7 @@ autosubmit: false # shown to the student. If false, the test is saved but not corrected. # No grade is shown to the student. # (default: true) -autocorrect: false +autocorrect: true # Show points for each question (min and max). # (default: true) diff --git a/perguntations/templates/grade.html b/perguntations/templates/grade.html index 351ea20..170b62f 100644 --- a/perguntations/templates/grade.html +++ b/perguntations/templates/grade.html @@ -40,14 +40,14 @@
- {% if t['state'] == 'FINISHED' %} + {% if t['state'] == 'CORRECTED' %} + {% if t['grade'] - t['scale'][0] >= 0.75*(t['scale'][1] - t['scale'][0]) %} + + {% end %}

Resultado: {{ f'{round(t["grade"], 3)}' }} valores na escala [{{t['scale'][0]}},{{t['scale'][1]}}].

- {% if t['grade'] - t['scale'][0] >= 0.75*(t['scale'][1] - t['scale'][0]) %} - - {% end %} {% elif t['state'] == 'SUBMITTED' %}

A prova foi submetida com sucesso. Vai ser corrigida mais tarde.

{% elif t['state'] == 'QUIT' %} -- libgit2 0.21.2