diff --git a/mlbplaysave.sh b/mlbplaysave.sh index 6a36e33..bc14061 100755 --- a/mlbplaysave.sh +++ b/mlbplaysave.sh @@ -32,7 +32,7 @@ fi # grab the game pk of a single live game, if multiple (in case of spring # training) -gamePk=$(sqlite3 $db "select gamePk from games where teamId='$team' and state='In Progress' limit 1") +gamePk=$(sqlite3 $db "select gamePk from games where teamId='$team' and state in ('In Progress', 'Warmup') limit 1") if [[ -z "$gamePk" ]] then echo "$0:" 'no live games found' >&2