Fix not matching documentation comments
This commit is contained in:
parent
b382beb5a6
commit
e70436104b
1 changed files with 2 additions and 2 deletions
|
@ -37,13 +37,13 @@ async def add_tag(
|
|||
return db_tag
|
||||
|
||||
|
||||
@router.get("/{name}", response_model=TagRead, summary="Get a project by name")
|
||||
@router.get("/{name}", response_model=TagRead, summary="Get a tag by name")
|
||||
async def get_tag(
|
||||
*,
|
||||
name: str = Path(..., title="Name of the tag"),
|
||||
session: Session = Depends(database.get_session)
|
||||
) -> Tag:
|
||||
"""Fetch a project by name."""
|
||||
"""Fetch a tag by name."""
|
||||
|
||||
try:
|
||||
tag = session.exec(select(Tag).where(Tag.name == name)).one()
|
||||
|
|
Loading…
Reference in a new issue