1 parent 3ef4ecf commit e1eb93cCopy full SHA for e1eb93c
1 file changed
backend/routers/media.py
@@ -1832,7 +1832,8 @@ async def for_you(
1832
random.shuffle(combined)
1833
1834
await enrich_with_state(db, current_user.id, combined)
1835
- result = {"results": combined[:20]}
+ unwatched = [item for item in combined if not item.get("watched")]
1836
+ result = {"results": unwatched[:20]}
1837
_FOR_YOU_CACHE[current_user.id] = (_time.monotonic(), result)
1838
return result
1839
0 commit comments