summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
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
`)