We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53352c commit bf3657cCopy full SHA for bf3657c
1 file changed
rating_api/routes/comment.py
@@ -300,9 +300,7 @@ async def review_comment(
300
301
302
@comment.patch("/{uuid}", response_model=CommentGet)
303
-async def update_comment(uuid: UUID, comment_update: CommentUpdate,
304
- user=Depends(UnionAuth())
305
- ) -> CommentGet:
+async def update_comment(uuid: UUID, comment_update: CommentUpdate, user=Depends(UnionAuth())) -> CommentGet:
306
"""Позволяет изменить свой неанонимный комментарий"""
307
comment: Comment = Comment.get(session=db.session, id=uuid) # Ошибка, если не найден
308
0 commit comments