From ff56de55097dc364c57983ea91c5c7470baaa085 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 5 Dec 2023 23:32:31 +0100 Subject: Don't show completely empty games in replacement list. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 84c7d70..f389fbd 100644 --- a/server.js +++ b/server.js @@ -1291,7 +1291,7 @@ const QUERY_LIST_PUBLIC_GAMES_OPEN = SQL(` `) const QUERY_LIST_PUBLIC_GAMES_REPLACEMENT = SQL(` - select * from game_view where status=1 and not is_private and join_count < player_count + select * from game_view where status=1 and not is_private and join_count > 0 and join_count < player_count and not exists ( select 1 from contacts where me = owner_id and you = ? and relation < 0 ) order by mtime desc, ctime desc `) -- cgit v1.2.3