diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-14 17:17:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-20 13:14:24 +0100 |
commit | d1318d147297161691f5048e1f2cb4e516159144 (patch) | |
tree | f8858e16eece0e4a1bf8deb29548c6421b54df03 /tools/readgame.sh | |
parent | f02fb77b1cb34b4622f2c90597ff616d4de65fc5 (diff) | |
download | server-d1318d147297161691f5048e1f2cb4e516159144.tar.gz |
Add 'hidden' column to titles for beta-testing games.
Diffstat (limited to 'tools/readgame.sh')
-rw-r--r-- | tools/readgame.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/readgame.sh b/tools/readgame.sh index 5bf93de..4a8fdbd 100644 --- a/tools/readgame.sh +++ b/tools/readgame.sh @@ -1,10 +1,10 @@ #!/bin/bash if [ -n "$1" -a -n "$2" ] then - sqlite3 db "select writefile('$2',state) from games where game_id = $1" + sqlite3 db "select writefile('$2',state) from game_state where game_id = $1" elif [ -n "$1" ] then - sqlite3 db "select state from games where game_id = $1" + sqlite3 db "select state from game_state where game_id = $1" else echo "usage: bash tools/readgame.sh GAME [ state.json ]" fi |