diff --git a/registry/widgets.json b/registry/widgets.json index 200255d..249212b 100644 --- a/registry/widgets.json +++ b/registry/widgets.json @@ -472,9 +472,9 @@ "description": "Lists all MLB scores daily, with baserunner info and inning scores.", "author": "ShmoobiJones", "directory": "mlb-scores-tracker", - "readme_hash": "d3be8af0a9b72b2deeae6642ee4176e2edfcad4a", + "readme_hash": "0f983c68e4517b80200a76a21f5a8e4d8506adf6", "time_added": "2025-05-12T19:44:14.8033Z", - "time_updated": "2025-10-13T23:38:06.284535452Z" + "time_updated": "2026-02-21T23:43:52.705528413Z" }, { "title": "Mealie Today's Meal", diff --git a/widgets/mlb-scores-tracker/README.md b/widgets/mlb-scores-tracker/README.md index 337b9a9..7f0308f 100644 --- a/widgets/mlb-scores-tracker/README.md +++ b/widgets/mlb-scores-tracker/README.md @@ -99,7 +99,8 @@ {{ $seriesLabel := .String "description" }} {{ $seriesGame := .Int "seriesGameNumber" }} {{ $isRegularSeries := or (eq $seriesDesc "Regular Season") (eq $seriesDesc "Regular Season 1") (eq $seriesDesc "Regular Season 2") (eq $seriesDesc "Regular Season 3") (eq $seriesDesc "Regular Season 4") }} - {{ $isPlayoffSeries := and (ne $seriesDesc "") (not $isRegularSeries) }} + {{ $isSpringTraining := eq $seriesDesc "Spring Training" }} + {{ $isPlayoffSeries := and (ne $seriesDesc "") (not $isRegularSeries) (not $isSpringTraining) }} {{/* offense & base occupancy */}} {{ $r1 := .Exists "linescore.offense.first" }} {{ $r2 := .Exists "linescore.offense.second" }} @@ -136,7 +137,7 @@ {{ end }} - + {{ if eq $abs "Preview" }} {{ $gameTime := (.String "gameDate" | parseTime "2006-01-02T15:04:05Z").In now.Location }} {{ printf "%02d:%02d" $gameTime.Hour $gameTime.Minute }} @@ -148,7 +149,7 @@ {{ $detailed }} {{ end }} {{ if $isPlayoffSeries }} - + {{ if $seriesLabel }} {{ $seriesLabel }} {{ else if gt $seriesGame 0 }} @@ -158,6 +159,9 @@ {{ end }} {{ end }} + {{ if $isSpringTraining }} + Spring Training + {{ end }} {{ if and $live (eq $offTeamId $homeId) }} @@ -184,4 +188,4 @@ {{ end }} - ``` +```