shot chart service and models update

This commit is contained in:
Ravi Prasad
2025-05-13 22:10:42 -05:00
parent 5f67c07579
commit cdf5cf4cd2
14 changed files with 3117 additions and 115 deletions
-13
View File
@@ -8,7 +8,6 @@ import (
"io"
"log"
"net/http"
"strconv"
"strings"
"github.com/PuerkitoBio/goquery"
@@ -156,16 +155,4 @@ func FetchAndStorePlayerTotalScrapedStats(db *gorm.DB, season int, isPlayoff boo
})
return nil
}
// mustAtoi parses integer or returns 0
func mustAtoi(s string) int {
i, _ := strconv.Atoi(s)
return i
}
// mustParseFloat parses float or returns 0.0
func mustParseFloat(s string) float64 {
f, _ := strconv.ParseFloat(s, 64)
return f
}