diff --git a/app.py b/app.py index 503e64e..586880c 100644 --- a/app.py +++ b/app.py @@ -207,7 +207,9 @@ def habit_create(): habit = Habit.create(current_user.id, name, times, note, unit) # Back to index - return render_template( + return redirect(url_for('index')) + + """return render_template( 'habit.html', title='Erstelle ein Habit', name=name, @@ -215,7 +217,7 @@ def habit_create(): times=times, unit=unit, errors=errors, - ) + )""" # Run the application