modified: app.py

modified:   templates/quiz.html
This commit is contained in:
Simon
2025-11-14 23:56:46 +01:00
parent 5c02266370
commit 97d8444441
2 changed files with 18 additions and 3 deletions

5
app.py
View File

@@ -251,6 +251,9 @@ def check_answer():
game_mode = data.get('game_mode', 'artist')
playlist_id = data.get('playlist_id')
# Speichere Original für Anzeige
original_answer = correct_answer
# Bei Titel und Künstler: Sonderzeichen entfernen für besseren Vergleich
if game_mode == 'title' or game_mode == 'artist':
guess = clean_title(guess)
@@ -268,7 +271,7 @@ def check_answer():
return {
"correct": is_correct,
"correct_answer": correct_answer
"correct_answer": original_answer
}
@app.route("/play_track", methods=["POST"])