- If the problem persists, please contact
- @fuwn on AniList.
-
+
+ {#if contact}
+
+ If the problem persists, please contact
+ @fuwn on AniList.
+
+ {/if}
diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 312e5a01..87c97ba8 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -29,7 +29,7 @@
export let user: AniListAuthorisation;
- const currentYear = new Date(Date.now()).getFullYear();
+ let currentYear = new Date(Date.now()).getFullYear();
let currentUserIdentity = { name: '', id: -1 };
let episodes = 0;
let chapters = 0;
@@ -104,6 +104,7 @@
mediaSort = mediaSort;
includeMovies = includeMovies;
includeOVAs = includeOVAs;
+ currentYear = currentYear;
update().then(updateWidth).catch(updateWidth);
}
@@ -481,10 +482,10 @@
{#if currentUserIdentity.id === -2}
Please log in to view this page.
{:else if currentUserIdentity.id !== -1}
- {#await useFullActivityHistory ? fullActivityHistory(user, currentUserIdentity, currentYear) : getActivityHistory(currentUserIdentity)}
+ {#await currentYear !== new Date(Date.now()).getFullYear() || useFullActivityHistory ? fullActivityHistory(user, currentUserIdentity, currentYear) : getActivityHistory(currentUserIdentity)}
{@html nbsp(`Loading${useFullActivityHistory ? ' full-year' : ''} activity history ...`)}
{:then activities}
- {#await wrapped(user, currentUserIdentity)}
+ {#await wrapped(user, currentUserIdentity, currentYear)}
{@html nbsp('Loading user data ...')}
{:then wrapped}
@@ -776,14 +777,18 @@
Calculation
- Enable full-year activity
+ 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.
Refresh data
-
+
+ Calculate for year
+ With many activities, it may take multiple attempts to obtain all of your activity history
+ from AniList. If this occurs, wait one minute and try again to continue populating your local
+ activity history database.
+