HabitList fix
This commit is contained in:
parent
3c388b03a7
commit
e9368f567e
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user