From 3009c951931002c9021d76a1c221e3013f0cd046 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 24 Jun 2021 17:36:09 +0200 Subject: Add "exit" button to finished games and observer view. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.js') 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(` -- cgit v1.2.3