From 2b6c48a427d6839850c360c68af52793bcd54fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vinicius=20Assump=C3=A7=C3=A3o=20de=20Araujo?= <78980842+viniman27@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:33:17 -0300 Subject: [PATCH] Correcao sonar --- src/controller/commentController.py | 37 +---------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/src/controller/commentController.py b/src/controller/commentController.py index 239740e..172fce7 100755 --- a/src/controller/commentController.py +++ b/src/controller/commentController.py @@ -1,36 +1 @@ -# from fastapi import APIRouter, HTTPException, Response, status, Depends -# from database import get_db -# from sqlalchemy.orm import Session - -# from domain import commentSchema -# from repository import commentRepository -# from constants import errorMessages - -# comment = APIRouter( -# prefix="/comments" -# ) - -# @comment.get("/{video_id}", response_model=list[commentSchema.Comment]) -# def read_comment(video_id: int, db: Session = Depends(get_db)): -# comment = commentRepository.get_comments_by_video_id(db, video_id=video_id) -# return comment - -# @comment.post("/", response_model=commentSchema.Comment) -# def create_comment(comment: commentSchema.CommentCreate, db: Session = Depends(get_db)): -# return commentRepository.create_comment(db=db, video_id=comment.video_id, user_id=comment.user_id, user_name= comment.user_name ,content=comment.content) - -# @comment.delete("/{id}", response_model=commentSchema.Comment) -# def delete_comment(id: int, db: Session = Depends(get_db)): -# comment = commentRepository.get_comment_by_id(db, id) -# if not comment: -# raise HTTPException(status_code=404, detail=errorMessages.COMMENT_NOT_FOUND) -# commentRepository.delete_comment(db,comment) -# return comment - -# @comment.patch("/{id}", response_model=commentSchema.Comment) -# def update_comment(id: int, data: commentSchema.CommentUpdate,db: Session = Depends(get_db)): -# comment = commentRepository.get_comment_by_id(db, id) -# if not comment: -# raise HTTPException(status_code=404, detail=errorMessages.COMMENT_NOT_FOUND) -# updated_comment = commentRepository.update_comment(db,comment,data) -# return updated_comment +# Arquivo vazio