games field fixes

This commit is contained in:
Ravi Prasad
2025-06-03 20:28:46 -05:00
parent c32da76997
commit 5a027f6636
14 changed files with 38366 additions and 68 deletions
+8 -8
View File
@@ -34,14 +34,14 @@ func importPlayerAdvancedPlayoffs(db *gorm.DB) {
}
// importPlayerShotChart fetches shot-charts for every known player
func importPlayerShotChart(db *gorm.DB) {
const firstID = "hardeja01"
log.Printf("▶️ importing shot chart for player %s…", firstID)
if err := services.FetchAndStoreShotChartForPlayer(db, firstID); err != nil {
log.Printf("shot chart import failed for %s: %v", firstID, err)
}
// you can add more IDs here or just rely on the API endpoint after
}
// func importPlayerShotChart(db *gorm.DB) {
// const firstID = "hardeja01"
// log.Printf("▶️ importing shot chart for player %s…", firstID)
// if err := services.FetchAndStoreShotChartForPlayer(db, firstID); err != nil {
// log.Printf("shot chart import failed for %s: %v", firstID, err)
// }
// // you can add more IDs here or just rely on the API endpoint after
// }
// importPlayerTotalsScrape fetches & stores scraped regular-season total stats
func importPlayerTotalsScrape(db *gorm.DB) {