Skip to content

Commit

Permalink
Merge pull request #10 from stuartcampbell/main
Browse files Browse the repository at this point in the history
Fix spelling mistake in Proposals PI endpoint
  • Loading branch information
stuartcampbell authored Jan 18, 2024
2 parents 13c7617 + a786fc0 commit 257b826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/nsls2api/api/v1/proposal_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ async def get_proposals_for_cycle(cycle: str):
{"error": f"No proposals were found for cycle {cycle}"},
status_code=404,
)

data = {"cycle": cycle, "proposals": proposal_list}
return data

Expand Down Expand Up @@ -97,7 +96,7 @@ async def get_proposals_users(proposal_id: int):
return users


@router.get("/proposal/{proposal_id}/principle_invesigator", response_model=list[User])
@router.get("/proposal/{proposal_id}/principal-investigator", response_model=list[User])
async def get_proposal_principle_invesigator(proposal_id: int):
principle_invesigator = await proposal_service.pi_from_proposal(proposal_id)

Expand Down
2 changes: 1 addition & 1 deletion src/nsls2api/api/v1/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def get_myself(current_user: Annotated[Person, Depends(get_current_user)])
"/data_session/{username}",
response_model=DataSessionAccess,
tags=["data"],
include_in_schema=False,
include_in_schema=True,
description="Deprecated endpoint included for Tiled compatibility.",
deprecated=True,
)
Expand Down

0 comments on commit 257b826

Please sign in to comment.