also allow subscribing to games in warmup
This commit is contained in:
parent
46148dedf6
commit
587a9bf90a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue