Box score import
Load the NBA 2K games file and player lines file. Names are matched to TSE player_id values from players and, when a name is still open, draft_prospects. Re-importing a game replaces that game’s lines.
Use HTTP, not
file:///
Run a local server (for example npx --yes serve -p 5500) and open this page from http://localhost:5500/box-score-import.html so Supabase requests work.
1. Files
Before the first import, run create-season-box-scores-tables.sql in the Supabase SQL editor. That creates season_games and season_player_box_scores.
Delete stored box scores
Loading saved games…
Deleting a season removes its games, player lines, and regular-season player_stats for that season. Playoff stats stay. Deleting one game recalculates regular-season totals from the games that remain. Seasons with stats but no stored games still appear here, so a season can be cleared after its box scores are already gone.