Skip to content

Commit

Permalink
Fix Pirates and Rockies logo (#899)
Browse files Browse the repository at this point in the history
* Fix Pirates and Rockies logo

* Fix Pirates and Rockies logo
  • Loading branch information
robbydyer committed Feb 26, 2024
1 parent 3ac81d8 commit b4511f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/espnboard/logo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import (
"github.com/robbydyer/sports/internal/util"
)

const dark = "dark"
const (
dark = "dark"
)

func (e *ESPNBoard) getLogoCache(logoKey string) (*logo.Logo, error) {
e.logoLock.RLock()
Expand Down Expand Up @@ -149,6 +151,12 @@ func logoSearch(leaguer Leaguer, teamID string) string {
case "26":
return dark
}
case *mlb:
switch teamID {
// Pirates, Rockies
case "23", "27":
return dark
}
}

return "scoreboard"
Expand Down

0 comments on commit b4511f6

Please sign in to comment.