modified: app.py
modified: templates/quiz.html
This commit is contained in:
@@ -291,8 +291,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div style="text-align:center; margin-bottom: 10px;">
|
||||
{% set answered = question_number - 1 if question_number > 0 else 0 %}
|
||||
<span id="progressInfo">Frage {{ answered + 1 }} von {{ total_questions }}</span>
|
||||
<span id="progressInfo">Songs in Playlist: {{ total_questions }}</span>
|
||||
<span id="scoreInfo" style="margin-left:20px;">
|
||||
Richtige: {{ score }} / {{ answered if answered > 0 else 1 }}
|
||||
({{ ((score / (answered if answered > 0 else 1)) * 100) | round(0) if answered > 0 else 0 }}%)
|
||||
|
||||
Reference in New Issue
Block a user