Compare commits
2 Commits
4dc494e67a
...
776eaec21b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
776eaec21b | ||
|
|
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