HabitList fix

This commit is contained in:
Yapollon 2024-03-06 11:04:15 +01:00
parent 3c388b03a7
commit e9368f567e

View File

@ -31,7 +31,7 @@ class HabitList:
# Deletes the HabitList | The id of the current user is necessary
def delete(self, user_id):
if len(get_users) > 1:
if len(get_users(self.id)) > 1:
self.remove_user(user_id)
else:
delete_habitList(self.id)