simplify games table

This commit is contained in:
filifa
2024-08-08 22:17:11 -05:00
parent 0a15e0586b
commit 97b63bfeba
4 changed files with 10 additions and 16 deletions

View File

@@ -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