diff options
| author | Fuwn <[email protected]> | 2024-11-18 19:09:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-18 19:09:51 -0800 |
| commit | 5097465c65f10d5fc1109263e2cc418c6854f2e0 (patch) | |
| tree | 360779e3b5fedcfe9351bed7091ec12dbdcd67a9 /src | |
| parent | fix(CleanAnimeList): total chapter count calculation (diff) | |
| download | due.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.tar.xz due.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.zip | |
fix(CleanMangaList): total chapter count calculation
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Data/Static/authorised.json | 5 | ||||
| -rw-r--r-- | src/lib/List/Manga/CleanMangaList.svelte | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/Data/Static/authorised.json b/src/lib/Data/Static/authorised.json index 94f6762b..07c4688f 100644 --- a/src/lib/Data/Static/authorised.json +++ b/src/lib/Data/Static/authorised.json @@ -1 +1,4 @@ -[5678223] +[ + 5678223, + 7035177 +]
\ No newline at end of file diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index cbe2bd9f..73005d73 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -31,11 +31,7 @@ let serviceStatusResponse: Promise<Response>; let totalEpisodeDueCount = media - .map((manga) => { - if (manga.mediaListEntry?.status === 'COMPLETED') return 0; - - return (manga.mediaListEntry?.progress || 0) - 1; - }) + .map((manga) => (manga.episodes || 1) - (manga.mediaListEntry?.progress || 0)) .reduce((a, b) => a + b, 0); onMount(() => { |