diff --git a/app.py b/app.py index a28b27f..2afc7ac 100644 --- a/app.py +++ b/app.py @@ -582,7 +582,7 @@ def delete_list(): if current_user not in habit_list.get_users(): return {"error": "List does not belong to user"} - habit_list.delete() + habit_list.delete(current_user.id) return {} diff --git a/templates/components/delete_list.html b/templates/components/delete_list.html index b140c83..a3fbddf 100644 --- a/templates/components/delete_list.html +++ b/templates/components/delete_list.html @@ -1,9 +1,9 @@ -