Skip to content

Commit

Permalink
Update application.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ojas1901 committed Oct 11, 2023
1 parent b6db5ee commit 02cb847
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 02cb847

Please sign in to comment.