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:
parent
11d364bc8b
commit
1e12d5fa93
1 changed files with 5 additions and 0 deletions
5
app.py
5
app.py
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue