diff --git a/app.py b/app.py index a0ad72a..bda9315 100644 --- a/app.py +++ b/app.py @@ -153,6 +153,7 @@ def end_session(): # Erstelle oder aktualisiere Statistik statistic = Statistic.query.first() if not statistic: + # Erstelle eine neue Statistik mit allen Spalten statistic = Statistic( total_chars=0, correct_chars=0,