Skip to content

Commit

Permalink
Adequacao savedVideosRepository.py
Browse files Browse the repository at this point in the history
  • Loading branch information
viniman27 authored Aug 9, 2024
1 parent c8f5617 commit f4e58ad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/repository/savedVideosRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,3 @@ def remove_favorite(db: Session, video_id: str, user_id: str):
else:
raise HTTPException(status_code=404, detail="Video not found in favorites")

def get_favorite_videos(db: Session, user_id: str):
user_id = user_id.strip()
favorite_entries = db.query(savedVideosModel.WatchLater).filter(
savedVideosModel.WatchLater.user_id == user_id,
savedVideosModel.WatchLater.statusfavorite == True
).all()
return favorite_entries

0 comments on commit f4e58ad

Please sign in to comment.