Admin - Data Sync

Sync Teams

Pull all 30 NBA teams from nba_api and store them in the database.

Sync Rosters

Pull rosters for all teams. Teams must be synced first. Takes ~20 seconds.

Sync Team Stats

Pull W/L records, rankings, pace, ratings for all teams. Teams must be synced first. Takes ~20 seconds.

Sync Player Stats

Pull per-game averages (Season, L10, L5) for all players. Rosters must be synced first. Takes ~3 seconds.

Sync Games

Pull full season schedule (including upcoming games) and scores for completed games. Teams must be synced first. Takes ~20 seconds.

Sync Box Scores

Pull detailed player box scores for recent games. Games and rosters must be synced first.

Sync Odds

Pull latest betting lines from FanDuel & DraftKings via The Odds API. Uses 3 credits per call (500/month budget).

Prediction Engine

Select which prediction model to use for game outcome predictions.

Generate Predictions

Generate game outcomes and player stat line predictions. Refreshes injury data and uses latest stats. All data must be synced first.

Push to Remote

Dump local database and push to remote server via SSH. Not configured — set REMOTE_SSH_HOST env var.