Manual 2K player stats
Search for a player and team, choose the season, then enter season totals. Values map to public.player_stats; your calculate_player_stats trigger fills per-game and shooting columns.
Use HTTP, not a file path
This page was opened as
file:///…. Browsers often block Supabase requests from local files. From the project folder run
npx --yes serve -p 5500 (or use VS Code Live Server), then open
http://localhost:5500/manual-2k-stats.html.
Player & team
Type at least 2 characters to search. You can also paste player_id and team_id directly if you know them.
Paste one stat row (optional)
From a spreadsheet, paste one row of 16 numbers in this order: pts, dreb, oreb, ast, stl, blk, to, fgm, fga, 3p, 3pa, ftm, fta, min, gs, gp. Tab- or comma-separated.
Season totals
Column names match your database (FG/FGA, 3PA uses three_point_attempts, free throws free_throws_made / free_throw_attempts). TRB = ORB + DRB (auto).