Skip to content

Commit e1eb93c

Browse files
committed
fix: remove watched items from the for you discovery section
1 parent 3ef4ecf commit e1eb93c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎backend/routers/media.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,8 @@ async def for_you(
18321832
random.shuffle(combined)
18331833

18341834
await enrich_with_state(db, current_user.id, combined)
1835-
result = {"results": combined[:20]}
1835+
unwatched = [item for item in combined if not item.get("watched")]
1836+
result = {"results": unwatched[:20]}
18361837
_FOR_YOU_CACHE[current_user.id] = (_time.monotonic(), result)
18371838
return result
18381839

0 commit comments

Comments
 (0)