Skip to content

Commit

Permalink
Update student.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sudheshna-donthineni authored Apr 10, 2024
1 parent 2bb44e5 commit 9b8d38c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/router/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def check_if_email_or_phone_is_part_of_request(query_params):
"email" not in query_params
or query_params["email"] == ""
or query_params["email"] is None
) or (
) and (
"phone" not in query_params
or query_params["phone"] == ""
or query_params["phone"] is None
Expand Down Expand Up @@ -238,8 +238,8 @@ async def create_student(request: Request):
user_already_exists = user.get_users(
build_request(
query_params={
"email": query_params["email"],
"phone": query_params["phone"],
"email": query_params["email"] if "email" in query_params else None,
"phone": query_params["phone"] if "phone" in query_params else None,
}
)
)
Expand Down

0 comments on commit 9b8d38c

Please sign in to comment.