aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-19 02:27:54 -0700
committerFuwn <[email protected]>2023-09-19 02:28:03 -0700
commit1b329488d6256f6959475ef3aeaaa1847e34835b (patch)
tree32a007afc792fa5afe382e0bf069c541b26c7b53 /src/lib
parentfix(manga): no refetch for novels (diff)
downloaddue.moe-1b329488d6256f6959475ef3aeaaa1847e34835b.tar.xz
due.moe-1b329488d6256f6959475ef3aeaaa1847e34835b.zip
fix(due): move start time to processing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/List/Due/AnimeList.svelte3
-rw-r--r--src/lib/List/Due/MangaList.svelte3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index e6e36b39..bd3fe0cf 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -31,7 +31,6 @@
}, $settings.cacheMinutes * 1000 * 60);
onMount(async () => {
- startTime = performance.now();
animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime);
});
@@ -44,6 +43,8 @@
return [];
}
+ startTime = performance.now();
+
const releasingMedia = media.filter(
(media: Media) =>
media.status == 'RELEASING' &&
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index e35c5b1f..cf7f1017 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -23,7 +23,6 @@
}, $settings.cacheMinutes * 1000 * 60);
onMount(async () => {
- startTime = performance.now();
mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $lastPruneTimes.manga);
});
@@ -36,6 +35,8 @@
return [];
}
+ startTime = performance.now();
+
if ($lastPruneTimes.chapters === 1) {
lastPruneTimes.setKey('chapters', new Date().getTime());
} else {