mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 22:15:13 +00:00
refresh again
This commit is contained in:
@@ -146,7 +146,7 @@ func importPlayerShotCharts(db *gorm.DB) {
|
|||||||
|
|
||||||
// importMarkPlayoffGames marks games as playoff using the dedicated Basketball Reference playoff schedule.
|
// importMarkPlayoffGames marks games as playoff using the dedicated Basketball Reference playoff schedule.
|
||||||
func importMarkPlayoffGames(db *gorm.DB) {
|
func importMarkPlayoffGames(db *gorm.DB) {
|
||||||
for season := 2025; season <= 2026; season++ {
|
for season := 2024; season <= 2025; season++ {
|
||||||
if err := services.FetchAndMarkPlayoffGames(db, season+1); err != nil {
|
if err := services.FetchAndMarkPlayoffGames(db, season+1); err != nil {
|
||||||
log.Printf("playoff marking failed for %d: %v", season, err)
|
log.Printf("playoff marking failed for %d: %v", season, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,17 +50,17 @@ func main() {
|
|||||||
// Run all DB migrations + import steps exactly once
|
// Run all DB migrations + import steps exactly once
|
||||||
db := config.InitDB(true)
|
db := config.InitDB(true)
|
||||||
|
|
||||||
importPlayerAdvanced(db)
|
// importPlayerAdvanced(db)
|
||||||
log.Println("🎉 Player Advanced Import completed successfully")
|
// log.Println("🎉 Player Advanced Import completed successfully")
|
||||||
|
|
||||||
importPlayerAdvancedPlayoffs(db)
|
// importPlayerAdvancedPlayoffs(db)
|
||||||
log.Println("🎉 Player Advanced Playoffs Import completed successfully")
|
// log.Println("🎉 Player Advanced Playoffs Import completed successfully")
|
||||||
|
|
||||||
importPlayerTotalsScrape(db)
|
// importPlayerTotalsScrape(db)
|
||||||
log.Println("🎉 Player Totals (scraped) Import completed successfully")
|
// log.Println("🎉 Player Totals (scraped) Import completed successfully")
|
||||||
|
|
||||||
importPlayerTotalsPlayoffsScrape(db)
|
// importPlayerTotalsPlayoffsScrape(db)
|
||||||
log.Println("🎉 Player Playoffs (scraped) Import completed successfully")
|
// log.Println("🎉 Player Playoffs (scraped) Import completed successfully")
|
||||||
|
|
||||||
importGameSchedules(db)
|
importGameSchedules(db)
|
||||||
log.Println("🎉 Game Imports completed successfully 🏀")
|
log.Println("🎉 Game Imports completed successfully 🏀")
|
||||||
@@ -71,8 +71,8 @@ func main() {
|
|||||||
importMarkPlayoffGames(db)
|
importMarkPlayoffGames(db)
|
||||||
log.Println("🎉 Playoff games marked successfully 🏆")
|
log.Println("🎉 Playoff games marked successfully 🏆")
|
||||||
|
|
||||||
// importPlayerShotCharts(db)
|
importPlayerShotCharts(db)
|
||||||
// log.Println("🎉 Player Shot Chart Import completed successfully 🎯")
|
log.Println("🎉 Player Shot Chart Import completed successfully 🎯")
|
||||||
|
|
||||||
log.Println("🏀 ALL Imports completed successfully ✅ 🙌")
|
log.Println("🏀 ALL Imports completed successfully ✅ 🙌")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user