Skip to content

Commit

Permalink
Merge pull request #7 from utsavll0/Ojas
Browse files Browse the repository at this point in the history
Update application.py
  • Loading branch information
utsavll0 authored Oct 11, 2023
2 parents b6db5ee + 02cb847 commit 3bf8f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def user_profile():
temp = mongo.db.profile.find_one({'email': email}, {
'height', 'weight', 'goal', 'target_weight'})
if temp is not None:
mongo.db.profile.update({'email': email},
mongo.db.profile.update_one({'email': email},
{'$set': {'weight': temp['weight'],
'height': temp['height'],
'goal': temp['goal'],
Expand Down

0 comments on commit 3bf8f4f

Please sign in to comment.