Compare commits
2 Commits
afb57ef077
...
e20defa4e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e20defa4e1 | ||
|
|
1b665b8be0 |
@ -62,7 +62,10 @@ class HabitList:
|
||||
# Adds a User by email to the HabitList
|
||||
def add_user(self, email: str):
|
||||
user = User.get_by_email(email)
|
||||
add_user(self.id, user.id)
|
||||
if user:
|
||||
add_user(self.id, user.id)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
# Removes a User from the HabitList
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user