also allow subscribing to games in warmup

This commit is contained in:
filifa 2024-08-03 17:23:52 -05:00
parent 46148dedf6
commit 587a9bf90a
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ fi
# grab the game pk of a single live game, if multiple (in case of spring # grab the game pk of a single live game, if multiple (in case of spring
# training) # 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" ]] if [[ -z "$gamePk" ]]
then then
echo "$0:" 'no live games found' >&2 echo "$0:" 'no live games found' >&2