Hide completed items from the watchlist

This commit is contained in:
Zoe Roux 2023-12-06 15:23:31 +01:00
parent e2414f94f3
commit 1178e8fd6c
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ public class WatchStatusRepository : IWatchStatusRepository
/* includesJoin */
where
(coalesce(s.watch_status, m.watch_status) = 'watching'::watch_status
or coalesce(s.watch_status, m.watch_status) = 'completed'::watch_status)
or coalesce(s.watch_status, m.watch_status) = 'planned'::watch_status)
/* where */
order by
coalesce(s.order, m.order) desc,

View File

@ -60,7 +60,6 @@ export const WatchlistList = () => {
thumbnail={episode?.thumbnail ?? x.thumbnail}
href={episode?.href}
watchedPercent={x.watchStatus?.watchedPercent || null}
watchedStatus={x.watchStatus?.status || null}
// TODO: support this on mobile too
// @ts-expect-error This is a web only property
{...css({ gridColumnEnd: "span 2" })}
@ -74,6 +73,9 @@ export const WatchlistList = () => {
poster={x.poster}
watchStatus={x.watchStatus?.status || null}
watchPercent={x.watchStatus?.watchedPercent || null}
unseenEpisodesCount={
x.kind === WatchlistKind.Show ? x.watchStatus?.unseenEpisodesCount : null
}
type={x.kind === WatchlistKind.Movie ? "movie" : "show"}
/>
);