mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
workflows update
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
"current_from": "2006-10-01",
|
||||
"current_to": "2006-12-15",
|
||||
"target_end": "2026-06-15",
|
||||
"window_days": 60,
|
||||
"window_days": 45,
|
||||
"completed": false
|
||||
}
|
||||
|
||||
@@ -158,4 +158,14 @@ func importPlayerShotCharts(db *gorm.DB) {
|
||||
|
||||
log.Println("--- Finished Player Shot Chart Import from Predefined List ---")
|
||||
}
|
||||
|
||||
// importMarkPlayoffGames marks games as playoff using the dedicated Basketball Reference playoff schedule.
|
||||
func importMarkPlayoffGames(db *gorm.DB) {
|
||||
for season := ${SEASON}; season <= ${SEASON}; season++ {
|
||||
if err := services.FetchAndMarkPlayoffGames(db, season+1); err != nil {
|
||||
log.Printf("playoff marking failed for %d: %v", season, err)
|
||||
}
|
||||
log.Printf("Playoff games marked for season: %d", season)
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user