aboutsummaryrefslogtreecommitdiff
path: root/src/lib/User
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-18 09:01:39 +0000
committerFuwn <[email protected]>2026-04-18 09:01:39 +0000
commit0b0f846f68e7735e426523d5b8d1fc06e2392560 (patch)
treed16e5e0760e37f9a64cbcb031132d631cad83017 /src/lib/User
parentfix(cdn): preserve upstream headers alongside CORS and cache overrides (diff)
downloaddue.moe-0b0f846f68e7735e426523d5b8d1fc06e2392560.tar.xz
due.moe-0b0f846f68e7735e426523d5b8d1fc06e2392560.zip
fix(schedule): stop duplicating first page in season pagination
The seasonal schedule collector pushed page 1 outside the while-loop, then re-pushed the current page on every loop iteration. That meant every multi-page season duplicated its first page's media, and the same bug ran a second time when includeLastSeason was set. Restructure into a shared collectAllSchedulePages helper with a single push-then-check-hasNextPage loop, so each page is pushed exactly once. Verified against AniList for SPRING 2026 with includeLastSeason=true: 210 media, 0 duplicates.
Diffstat (limited to 'src/lib/User')
0 files changed, 0 insertions, 0 deletions