From 8365df4e08eaf72eadbb514392ec2724f2b5c284 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 13 Aug 2026 16:50:53 -0500 Subject: [PATCH] shots --- import.go | 76 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/import.go b/import.go index 0a87be3..e720eb6 100644 --- a/import.go +++ b/import.go @@ -12,7 +12,7 @@ import ( // importPlayerAdvanced fetches and stores advanced stats for seasons func importPlayerAdvanced(db *gorm.DB) { - for season := 2016; season <= 2019; season++ { + for season := 2016; season <= 2018; season++ { if err := services.FetchAndStorePlayerAdvancedScrapedStats(db, season, false); err != nil { log.Printf("advanced import failed for %d: %v", season, err) } @@ -24,7 +24,7 @@ func importPlayerAdvanced(db *gorm.DB) { // importPlayerAdvancedPlayoffs fetches and stores advanced stats for playoffs seasons func importPlayerAdvancedPlayoffs(db *gorm.DB) { - for season := 2016; season <= 2019; season++ { + for season := 2016; season <= 2018; season++ { if err := services.FetchAndStorePlayerAdvancedScrapedStats(db, season, true); err != nil { log.Printf("advanced import failed for %d: %v", season, err) } @@ -36,7 +36,7 @@ func importPlayerAdvancedPlayoffs(db *gorm.DB) { // importPlayerTotalsScrape fetches & stores scraped regular-season total stats func importPlayerTotalsScrape(db *gorm.DB) { - for season := 2016; season <= 2019; season++ { + for season := 2016; season <= 2018; season++ { if err := services.FetchAndStorePlayerTotalScrapedStats(db, season, false); err != nil { log.Printf("scraped totals import failed for %d: %v", season, err) } @@ -48,7 +48,7 @@ func importPlayerTotalsScrape(db *gorm.DB) { // importPlayerPlayoffsScrape fetches & stores scraped playoff total stats func importPlayerTotalsPlayoffsScrape(db *gorm.DB) { - for season := 2016; season <= 2019; season++ { + for season := 2016; season <= 2018; season++ { if err := services.FetchAndStorePlayerTotalScrapedStats(db, season, true); err != nil { log.Printf("scraped playoffs import failed for %d: %v", season, err) } @@ -103,24 +103,24 @@ func importPlayerShotCharts(db *gorm.DB) { endSeason := 2017 targetPlayerIDs := []string{ - // "jamesle01", - // "curryst01", - // "jokicni01", - // "doncilu01", - // "hardeja01", - // "irvinky01", - // "duranke01", - // "youngtr01", - // "gilgesh01", - // "brunsja01", - // "edwaran01", - // "mitchdo01", - // "derozde01", - // "westbru01", - // "butleji01", - // "davisan02", - // "leonaka01", - // "tatumja01", + "jamesle01", + "curryst01", + "jokicni01", + "doncilu01", + "hardeja01", + "irvinky01", + "duranke01", + "youngtr01", + "gilgesh01", + "brunsja01", + "edwaran01", + "mitchdo01", + "derozde01", + "westbru01", + "butleji01", + "davisan02", + "leonaka01", + "tatumja01", // "hardeja01", // "curryst01", // "duranke01", @@ -134,22 +134,22 @@ func importPlayerShotCharts(db *gorm.DB) { // "townska01", // "walkeke02", // "bealbr01", - "antetgi01", - "bookede01", - "youngtr01", - "doncilu01", - "jokicni01", - "randlju01", - "embiijo01", - "tatumja01", - "gilgesh01", - "edwaran01", - "mitchdo01", - "brunsja01", - "herroty01", - "brownja02", - "maxeyty01", - "murraja01", + // "antetgi01", + // "bookede01", + // "youngtr01", + // "doncilu01", + // "jokicni01", + // "randlju01", + // "embiijo01", + // "tatumja01", + // "gilgesh01", + // "edwaran01", + // "mitchdo01", + // "brunsja01", + // "herroty01", + // "brownja02", + // "maxeyty01", + // "murraja01", } if len(targetPlayerIDs) == 0 {