Skip to content

Commit

Permalink
Fix/Recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
minchok125 authored Feb 2, 2025
1 parent a007540 commit 06ea384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watchapedia/app/recommend/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_expected_rating(self, user_id: int):

movie_list = self.movie_service.search_movie_list("")
movie_list.sort(key = lambda movie : movie.reviews_count, reverse=True)
movie_list = movie_list[0:18]
movie_list = movie_list[0:10]

user_average = self.user_average_rating(user_id)

Expand All @@ -86,7 +86,7 @@ def get_expected_rating(self, user_id: int):
expect_num = 0

for movie in movie_list :
if expect_num >= 8 :
if expect_num >= 7 :
break

if movie.average_rating is None :
Expand Down

0 comments on commit 06ea384

Please sign in to comment.