Skip to content

Commit

Permalink
group-user bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Krrupa committed Mar 28, 2024
1 parent 74ca318 commit 387bdc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/router/group_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_group_user(request: Request):
)
if is_response_valid(response, "Group-User API could not fetch the data!"):
return is_response_empty(
response.json()[0], True, "Group-User record does not exist!"
response.json(), True, "Group-User record does not exist!"
)


Expand Down
2 changes: 1 addition & 1 deletion app/router/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def verify_student(request: Request, student_id: str):
}
)
)
if not group_user_response:
if not group_user_response or group_user_response == []:
return False
return True

Expand Down

0 comments on commit 387bdc2

Please sign in to comment.