From e70436104b005883552ab8c42d87eb593832eaf9 Mon Sep 17 00:00:00 2001 From: linuskmr Date: Thu, 23 Dec 2021 18:35:25 +0100 Subject: [PATCH] Fix not matching documentation comments --- backend/src/routes/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/tags.py b/backend/src/routes/tags.py index d91ed7f..e7a945d 100644 --- a/backend/src/routes/tags.py +++ b/backend/src/routes/tags.py @@ -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()