We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c499c commit 4221371Copy full SHA for 4221371
core/data/player.py
@@ -61,11 +61,11 @@ def __post_init__(self):
61
p.manual, c.coalition,
62
CASE WHEN w.player_ucid IS NOT NULL THEN TRUE ELSE FALSE END AS watchlict, p.vip
63
FROM players p LEFT OUTER JOIN bans b ON p.ucid = b.ucid
64
- LEFT OUTER JOIN coalitions c ON p.ucid = c.player_ucid
+ LEFT OUTER JOIN coalitions c ON p.ucid = c.player_ucid AND c.server_name = %s
65
LEFT OUTER JOIN watchlist w ON p.ucid = w.player_ucid
66
WHERE p.ucid = %s
67
AND COALESCE(b.banned_until, (now() AT TIME ZONE 'utc')) >= (now() AT TIME ZONE 'utc')
68
- """, (self.ucid, ))
+ """, (self.server.name, self.ucid))
69
# existing member found?
70
if cursor.rowcount == 1:
71
row = cursor.fetchone()
0 commit comments