simplify games table
This commit is contained in:
@@ -23,7 +23,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 json ->> 'status' ->> 'detailedState' in ('In Progress', 'Warmup') limit 1")
|
||||
gamePk=$(sqlite3 $db "select json ->> 'gamePk' from games where json ->> 'status' ->> 'detailedState' in ('In Progress', 'Warmup') limit 1")
|
||||
if [[ -z "$gamePk" ]]
|
||||
then
|
||||
echo "$0:" 'no live games found' >&2
|
||||
|
||||
Reference in New Issue
Block a user