Compare commits
No commits in common. "776eaec21b6fc2910c99adb6cd7f71747284833c" and "4dc494e67ab65a89e4d4dce11f3da280e1e630f4" have entirely different histories.
776eaec21b
...
4dc494e67a
@ -31,7 +31,7 @@ class HabitList:
|
|||||||
|
|
||||||
# Deletes the HabitList | The id of the current user is necessary
|
# Deletes the HabitList | The id of the current user is necessary
|
||||||
def delete(self, user_id):
|
def delete(self, user_id):
|
||||||
if len(get_users(self.id)) > 1:
|
if len(get_users) > 1:
|
||||||
self.remove_user(user_id)
|
self.remove_user(user_id)
|
||||||
else:
|
else:
|
||||||
delete_habitList(self.id)
|
delete_habitList(self.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user