Skip to content

Commit

Permalink
Merge branch 'main' into Strict-search-lecturer
Browse files Browse the repository at this point in the history
  • Loading branch information
DaymasS authored Nov 7, 2024
2 parents 52043ab + 030e4e7 commit 4a8a4ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rating_api/routes/lecturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ async def create_lecturer(
@lecturer.get("/{id}", response_model=LecturerGet)
async def get_lecturer(
id: int,
info: list[Literal["comments", "mark"]] = Query(default=[]),
_=Depends(UnionAuth(scopes=["rating.lecturer.read"], allow_none=False, auto_error=True)),
info: list[Literal["comments", "mark"]] = Query(default=[])
) -> LecturerGet:
"""
Scopes: `["rating.lecturer.read"]`
Expand Down Expand Up @@ -82,7 +81,6 @@ async def get_lecturers(
order_by: list[Literal["general", '']] = Query(default=[]),
subject: str = Query(''),
name: str = Query(''),
_=Depends(UnionAuth(scopes=["rating.lecturer.read"], allow_none=False, auto_error=True)),
) -> LecturerGetAll:
"""
Scopes: `["rating.lecturer.read"]`
Expand Down

0 comments on commit 4a8a4ea

Please sign in to comment.