From 27beb861f14eb2b1f59eda49832c2eb45fe8472e Mon Sep 17 00:00:00 2001 From: gitadmin Date: Mon, 18 Dec 2023 21:42:08 +0000 Subject: [PATCH] quiz/quiz.py aktualisiert Signed-off-by: gitadmin --- quiz/quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quiz/quiz.py b/quiz/quiz.py index 48a2e9e..a5ced5b 100644 --- a/quiz/quiz.py +++ b/quiz/quiz.py @@ -51,7 +51,7 @@ def submit_quiz(): user_answer = request.form.get('answer') correct_answer = fragen_liste[current_index]['answer'] - if user_answer == correct_answer: + if user_answer.lower() == correct_answer.lower(): last_correct = True correct_sum += 1 debugtxt = correct_answer + " ist richtig! passt zu deiner Angabe: " + user_answer