From 3e985f3154fdf510a01f23ee7c39e5f9b2730d66 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 22 Dec 2023 03:54:49 -0800 Subject: feat(wrapped): refresh full year button --- src/lib/Tools/Wrapped.svelte | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 269e046a..57ec09b7 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -23,6 +23,7 @@ import { estimatedDayReading } from '$lib/Media/Manga/time'; import ActivityHistoryGrid from './ActivityHistoryGrid.svelte'; import SettingHint from '$lib/Settings/SettingHint.svelte'; + import { database } from '$lib/Database/activities.js'; export let user: AniListAuthorisation; @@ -339,6 +340,10 @@ return true; }); }; + + const pruneFullYear = async () => { + await database.activities.bulkDelete((await database.activities.toArray()).map((m) => m.page)); + }; {#if currentUserIdentity.id === -2} @@ -503,13 +508,12 @@ Enable full-year activity
If you have many activities, you may rate-limited and you may need multiple attempts - to fully populate your local activity history database. If you get rate-limited, wait - one minute, then try again. + to fully populate your local activity history database.
If you get rate-limited, + wait one minute, then try again. + Refresh data

+

{/if} - -

- Include music
Include rewatches & rereads
Include specials and OVAs
-- cgit v1.2.3