diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-05 23:32:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-05 23:32:42 +0100 |
commit | ff56de55097dc364c57983ea91c5c7470baaa085 (patch) | |
tree | 9f054823cfa3589776269e9b09678277ef3eade4 | |
parent | cce92d3bc08acca3fe24ccfd5bbba58b03292f8d (diff) | |
download | server-ff56de55097dc364c57983ea91c5c7470baaa085.tar.gz |
Don't show completely empty games in replacement list.
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 `) |