diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-16 20:05:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-09-18 21:16:47 +0200 |
commit | a0870706aca7fd35e1ba82eaf9d206eacaa00dde (patch) | |
tree | 78e357342998acb988be981f22f4346b335c5821 /server.js | |
parent | ef765ba9e8e6129159e88fba044a4f2a7a4c4f56 (diff) | |
download | server-a0870706aca7fd35e1ba82eaf9d206eacaa00dde.tar.gz |
Don't show "ready to start" games on public game list.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -1187,11 +1187,6 @@ const QUERY_LIST_PUBLIC_GAMES_OPEN = SQL(` order by mtime desc, ctime desc `) -const QUERY_LIST_PUBLIC_GAMES_READY = SQL(` - select * from game_view where status=0 and not is_private and join_count = player_count - order by mtime desc, ctime desc - `) - const QUERY_LIST_PUBLIC_GAMES_REPLACEMENT = SQL(` select * from game_view where status=1 and not is_private and join_count < player_count order by mtime desc, ctime desc @@ -1451,13 +1446,11 @@ app.get('/games/public', function (req, res) { } let open_games = QUERY_LIST_PUBLIC_GAMES_OPEN.all() - let ready_games = QUERY_LIST_PUBLIC_GAMES_READY.all() let replacement_games = QUERY_LIST_PUBLIC_GAMES_REPLACEMENT.all() let active_games = QUERY_LIST_PUBLIC_GAMES_ACTIVE.all() let finished_games = QUERY_LIST_PUBLIC_GAMES_FINISHED.all() annotate_games(open_games, user_id, unread) - annotate_games(ready_games, user_id, unread) annotate_games(replacement_games, user_id, unread) annotate_games(active_games, user_id, unread) annotate_games(finished_games, user_id, unread) @@ -1465,7 +1458,6 @@ app.get('/games/public', function (req, res) { res.render('games_public.pug', { user: req.user, open_games, - ready_games, replacement_games, active_games, finished_games |