Skip to content

Commit

Permalink
adicionando verificador para video nao existente na lista de videos d…
Browse files Browse the repository at this point in the history
…a unbtv
  • Loading branch information
victorleaoo committed Sep 1, 2024
1 parent 3339557 commit 9b7ef41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/recommendationController.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def get_recommendation_from_record(user_id: str =Query(...) , db: Session = Depe
# Gera lista de recomendações para cada vídeo no histórico
for video in videos_record:
videos_recommend = get_recommendations(int(video))
if videos_recommend == 0:
continue
recommendations.append(videos_recommend)

try:
Expand Down

0 comments on commit 9b7ef41

Please sign in to comment.