diff --git a/src/controller/recordController.py b/src/controller/recordController.py index 3da8ebf..8d203f1 100644 --- a/src/controller/recordController.py +++ b/src/controller/recordController.py @@ -13,7 +13,7 @@ def add_to_record(record: recordSchema.RecordCreate, db: Session = Depends(get_db)): return recordRepository.create_record(db=db, record=record) -@Record.get("/{user_id}") +@Record.get("/get_record") def check_record(record: recordSchema.RecordGet, db: Session = Depends(get_db)): videos = recordRepository.get_record(db=db, record=record) return {"videos": videos} diff --git a/src/repository/savedVideosRepository.py b/src/repository/savedVideosRepository.py index 1e63518..fd37561 100644 --- a/src/repository/savedVideosRepository.py +++ b/src/repository/savedVideosRepository.py @@ -1,4 +1,4 @@ -from sqlalchemy.orm import Session + from sqlalchemy.orm import Session from domain import savedVideosSchema from model import savedVideosModel