summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-22 18:21:14 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-22 18:41:20 +0200
commit420badd2916809e7b5048f3138f132e5bebfe636 (patch)
tree20cdbcc2a7d71fd3c4e480011be80f2aa076ce7d /schema.sql
parent4b3f2aff171313893c944381f102972558b35e22 (diff)
downloadserver-420badd2916809e7b5048f3138f132e5bebfe636.tar.gz
Don't count unstarted games as "waiting" in header.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql10
1 files changed, 1 insertions, 9 deletions
diff --git a/schema.sql b/schema.sql
index 9df5b93..14b3096 100644
--- a/schema.sql
+++ b/schema.sql
@@ -144,15 +144,7 @@ create view user_dynamic_view as
where
owner_id = users.user_id
and status = 0
- and (
- join_count = 0
- or (
- join_count = player_count
- and not exists (
- select 1 from players where players.game_id = games.game_id and players.is_invite
- )
- )
- )
+ and join_count = 0
) as waiting,
is_banned
from