Skip to content

Commit bf3657c

Browse files
committed
изменение одной строчки
1 parent b53352c commit bf3657c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rating_api/routes/comment.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ async def review_comment(
300300

301301

302302
@comment.patch("/{uuid}", response_model=CommentGet)
303-
async def update_comment(uuid: UUID, comment_update: CommentUpdate,
304-
user=Depends(UnionAuth())
305-
) -> CommentGet:
303+
async def update_comment(uuid: UUID, comment_update: CommentUpdate, user=Depends(UnionAuth())) -> CommentGet:
306304
"""Позволяет изменить свой неанонимный комментарий"""
307305
comment: Comment = Comment.get(session=db.session, id=uuid) # Ошибка, если не найден
308306

0 commit comments

Comments
 (0)