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:
@@ -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`]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user