From dd436635650cc309ca2f85359084e25dd8ca226f Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 29 May 2026 03:05:58 -0500 Subject: [PATCH] shot imports --- .DS_Store | Bin 30724 -> 30724 bytes .gitignore | 5 ++++- import.go | 4 ++-- main.go | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.DS_Store b/.DS_Store index 8f4f2d168d2e0991228ba1390e84e2841499b943..31742f48e16b66eb937418ad6d008a3d1ef3a70c 100644 GIT binary patch delta 123 zcmZqqz}WJEaf7Ntoca7|3=9k`40;Ud44Diix%nZoZ34QcivnP>kcvv!K80o*Z{Xl~2Jd nUyxxKoSdIq0Mx_4V0B<~vqHHbqsZpphW%`e3pRIKRN4aoH*zM6 diff --git a/.gitignore b/.gitignore index a6fb312..111ec7b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,7 @@ docs/cloudflare.json docs/notes -docs/postman \ No newline at end of file +docs/postman + +docs/kiro.md +docs/digital_ocean/digitaal ocean llms.txt \ No newline at end of file diff --git a/import.go b/import.go index 2c12b7f..bd1d0e2 100644 --- a/import.go +++ b/import.go @@ -91,7 +91,7 @@ func importGameSchedules(db *gorm.DB) { func importBoxScores(db *gorm.DB) { // now := time.Now() - from := time.Date(2026, time.April, 28, 0, 0, 0, 0, time.UTC) + from := time.Date(2026, time.May, 25, 0, 0, 0, 0, time.UTC) // from := time.Date(now.Year(), now.Month(), now.Day()-1, 5, 30, 0, 0, time.UTC) to := time.Date(2026, time.June, 15, 5, 30, 0, 0, time.UTC) @@ -115,7 +115,7 @@ func importPlayerShotCharts(db *gorm.DB) { log.Println("--- Starting Player Shot Chart Import from Predefined List ---") // 1. Define the season range. Your service fetches from newest to oldest. - startSeason := 2025 + startSeason := 2026 endSeason := 2017 // Basketball-Reference has data going back this far. // 2. Define the static list of player IDs to import. diff --git a/main.go b/main.go index 20365e7..c17c65a 100644 --- a/main.go +++ b/main.go @@ -68,8 +68,8 @@ func main() { importBoxScores(db) log.Println("🎉 Related Box Score Imports completed successfully 📦") - // importPlayerShotCharts(db) - // log.Println("🎉 Player Shot Chart Import completed successfully 🎯") + importPlayerShotCharts(db) + log.Println("🎉 Player Shot Chart Import completed successfully 🎯") log.Println("🏀 ALL Imports completed successfully ✅ 🙌") return