Bugfix: displaying scores for incomplete entries

This commit is contained in:
Vivek Santayana 2023-02-02 22:44:19 +00:00
parent 4f2984deea
commit 8deefb9035

View File

@ -75,7 +75,11 @@
{{ result.end_time.strftime('%d %b %Y %H:%M') if result.end_time else None }}
</td>
<td>
{% if result.result %}
{{ (100*result.result['score']/result.result['max'])|round|int }}&percnt; ({{ result.result.grade }})
{% else %}
Incomplete
{% endif %}
</td>
</tr>
{% endfor %}