Skip to content

Commit

Permalink
removing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rashikaqureshi committed Jul 31, 2020
1 parent 8c83b56 commit 3924d92
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/api/dao/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,7 @@ def update_user_profile(user_id: int, data: Dict[str, str]):

if "available_to_mentor" in data:
user.available_to_mentor = data["available_to_mentor"]

# if not username and not name:
# return messages.USER_AND_USERNAME_FIELD_IS_MISSING,HTTPStatus.OK

# if not username:
# return messages.USERNAME_FIELD_IS_MISSING,HTTPStatus.OK

# if not name :
# return messages.NAME_FIELD_IS_MISSING,HTTPStatus.OK

user.save_to_db()

return messages.USER_SUCCESSFULLY_UPDATED, HTTPStatus.OK
Expand Down

0 comments on commit 3924d92

Please sign in to comment.