fix: Runde Fehlerquote auf eine Dezimalstelle

Co-authored-by: aider (ollama_chat/qwen3-coder:30b) <aider@aider.chat>
This commit is contained in:
jamulix 2025-10-21 05:21:02 +02:00
commit 4957b67602

2
app.py
View file

@ -123,7 +123,7 @@ def calculate_statistics(user_input, current_text):
'correct_chars': correct_chars,
'incorrect_chars': incorrect_chars,
'total_chars': total_chars,
'error_rate': round(error_rate, 2),
'error_rate': round(error_rate, 1), # Nur eine Dezimalstelle
'typing_speed': round(typing_speed, 2),
'duration_per_char': round(duration_per_char, 3),
'words_per_minute': round(words_per_minute, 2)