modified: app.py

modified:   templates/quiz.html
This commit is contained in:
2025-05-17 13:51:37 +02:00
parent ca552e7bac
commit 101dba8b64
2 changed files with 8 additions and 4 deletions

View File

@@ -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 }}%)