summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-24 17:36:09 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-24 17:36:30 +0200
commit3009c951931002c9021d76a1c221e3013f0cd046 (patch)
tree54a97608cc803d182aeb7e49bd7aa692b7f757a6 /server.js
parentcc2f229e76e04295f6aad75dbf797c690a7aae95 (diff)
downloadserver-3009c951931002c9021d76a1c221e3013f0cd046.tar.gz
Add "exit" button to finished games and observer view.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index c06bee0..fbad44b 100644
--- a/server.js
+++ b/server.js
@@ -649,7 +649,7 @@ const QUERY_COUNT_OPEN_GAMES = db.prepare("SELECT COUNT(*) FROM games WHERE owne
const QUERY_DELETE_GAME = db.prepare("DELETE FROM games WHERE game_id = ?");
const QUERY_REMATCH_FIND = db.prepare(`
- SELECT game_id FROM games WHERE status=0 AND description=?
+ SELECT game_id FROM games WHERE status<3 AND description=?
`).pluck();
const QUERY_REMATCH_CREATE = db.prepare(`