diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-06-14 20:40:25 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-06-14 21:09:48 +0200 |
commit | 06f757c23d0d9f7a2b86f6c828f886ee8e642e03 (patch) | |
tree | 56771af9be14e393e2753a70c7080f5558e28014 /views/info.pug | |
parent | ae02f4cde98879b6fddc12c87c4fd3c5663d493e (diff) | |
download | server-06f757c23d0d9f7a2b86f6c828f886ee8e642e03.tar.gz |
Clean up game list logic.
Diffstat (limited to 'views/info.pug')
-rw-r--r-- | views/info.pug | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/info.pug b/views/info.pug index 24425e5..62698c9 100644 --- a/views/info.pug +++ b/views/info.pug @@ -1,4 +1,9 @@ //- vim:ts=4:sw=4: +- let open_games = games.filter(game => game.status === 0 && !game.is_ready) +- let ready_games = games.filter(game => game.status === 0 && game.is_ready) +- let replacement_games = games.filter(game => game.status === 1 && !game.is_ready) +- let active_games = games.filter(game => game.status === 1 && game.is_ready) +- let finished_games = games.filter(game => game.status === 2) doctype html html head |