From c1b94af8bb2e8a6a3a2b5de9979b771b2aab0591 Mon Sep 17 00:00:00 2001 From: filifa Date: Wed, 10 Jul 2024 23:47:51 -0500 Subject: [PATCH] add fixme --- game.go | 1 + 1 file changed, 1 insertion(+) diff --git a/game.go b/game.go index c868c4e..f6c9e1b 100644 --- a/game.go +++ b/game.go @@ -11,6 +11,7 @@ type Game struct { func (g *Game) Update(feed *statsapi.FeedResponse) { homeScore, _ := (*feed)["liveData"].(map[string]any)["linescore"].(map[string]any)["teams"].(map[string]any)["home"].(map[string]any)["runs"].(float64) awayScore, _ := (*feed)["liveData"].(map[string]any)["linescore"].(map[string]any)["teams"].(map[string]any)["away"].(map[string]any)["runs"].(float64) + // FIXME: currentPlay/result doesn't always have description desc, _ := (*feed)["liveData"].(map[string]any)["plays"].(map[string]any)["currentPlay"].(map[string]any)["result"].(map[string]any)["description"].(string) g.HomeScore = uint(homeScore)