← 返回 amazon 的题目列表Full-Stack Bug Fix: Recommendations Not Showing on User Home Page (MovieDB)
类型:online_judge
Task: Full-Stack Debug (MovieDB Recommendations Not Showing)
You are given a full-stack project called MovieDB (the provided project includes backend and frontend code; screenshots show a Java backend structure).
The app allows users to explore movies, mark them as watched, submit ratings, and share reviews.
There is a bug: the personalized recommendations section ("Recommended For You") is broken. Even after a user marks a movie as watched and submits a rating, the recommendations do not appear on the home page.
Steps to reproduce (as described)
Log in using the provided test account.
Select any movie from the list.
Mark the movie as "watched".
Submit your rating.
Return to the home page and scroll to the "Recommended For You" section; it remains empty.
Your task
Find the bug in the project files and fix it so that the home page recommendations render correctly.
The built-in AI assistant can only target a selected file and cannot scan the entire repo automatically.
Deliverable
Submit the code changes (or patch) that fixes the issue.
Example
Input
登录 -> 选择电影 -> 标记 watched -> 提交评分 -> 回主页查看 Recommended For You
Output
推荐区域出现电影列表(非空)