Update database.py
Browse files- database.py +2 -0
database.py
CHANGED
|
@@ -44,6 +44,7 @@ def add_user(name, age, gender, height, email, password, goal):
|
|
| 44 |
"age": age,
|
| 45 |
"gender": gender,
|
| 46 |
"height": height,
|
|
|
|
| 47 |
"email": email,
|
| 48 |
"password": hash_password(password),
|
| 49 |
"goal": goal,
|
|
@@ -65,6 +66,7 @@ def get_user_profile(email):
|
|
| 65 |
user.get("age"),
|
| 66 |
user.get("gender"),
|
| 67 |
user.get("height"),
|
|
|
|
| 68 |
user.get("goal")
|
| 69 |
)
|
| 70 |
return None
|
|
|
|
| 44 |
"age": age,
|
| 45 |
"gender": gender,
|
| 46 |
"height": height,
|
| 47 |
+
" weight":weight,
|
| 48 |
"email": email,
|
| 49 |
"password": hash_password(password),
|
| 50 |
"goal": goal,
|
|
|
|
| 66 |
user.get("age"),
|
| 67 |
user.get("gender"),
|
| 68 |
user.get("height"),
|
| 69 |
+
user.get("weight"),
|
| 70 |
user.get("goal")
|
| 71 |
)
|
| 72 |
return None
|