fix: Zeige sofort neuen Text nach Neustart an

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

5
app.py
View file

@ -50,6 +50,11 @@ def index():
# Hole den aktuellen Text
current_text = EXAMPLE_TEXTS[progress.current_text_index]
# Wenn der Fortschritt noch nicht initialisiert ist (z.B. beim ersten Start),
# dann setze den Textindex auf 0 und den Text
if progress.current_text_index == 0 and progress.current_position == 0:
current_text = EXAMPLE_TEXTS[0]
return render_template('index.html',
current_text=current_text,
current_position=progress.current_position,