Fixed redirect after use removal from habit list

This commit is contained in:
Verox 2024-03-14 20:09:29 +01:00
parent fce1593e32
commit ff670abc1d

8
app.py
View File

@ -645,13 +645,7 @@ def delete_user_from_list():
id = int(habit_user_id) id = int(habit_user_id)
habit_list.delete(id) habit_list.delete(id)
return render_template( return redirect(url_for('index', habit_list=habit_list.id))
'users-edit.html',
title='Teilnehmer bearbeiten',
habit_list=habit_list,
users=users,
errors={},
)
@app.route('/users-leave') @app.route('/users-leave')
@login_required @login_required