Record phase 3 importer and fetch full player history

The importer needs every day of /history for the triangle's monthly points;
the API returns only 50 by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 19:21:46 -08:00
co-authored by Claude Opus 5.5
parent d75448af66
commit f7567c4c4f
2 changed files with 52 additions and 2 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ export async function exportProfile(playerId: string): Promise<void> {
const dir = (kind: string) => bl('players', playerId, kind);
const endpoints: [string, string][] = [
['profile', `/player/${playerId}?stats=true`],
['history', `/player/${playerId}/history`],
// count: days of history; the default is 50, which loses the triangle's
// monthly points. Upstream keeps one row per day since the first score.
['history', `/player/${playerId}/history?count=100000`],
['triangle', `/player/${playerId}/history/triangle`],
['accgraph', `/player/${playerId}/accgraph`]
];