Fix: query world_partition for active server IDs
This commit is contained in:
1 parent
7bfcafdaf6
commit
7c7e655de7
1 file changed
+4
-4
+4
-4
@@ -391,10 +391,10 @@ def register_routes(app, services, settings):
|
|||||||
def server_status():
|
def server_status():
|
||||||
try:
|
try:
|
||||||
active_servers = db.query("""
|
active_servers = db.query("""
|
||||||
SELECT a.server_id, w.map
|
SELECT server_id, map
|
||||||
FROM dune.active_server_ids a
|
FROM dune.world_partition
|
||||||
LEFT JOIN dune.world_partition w ON a.server_id = w.server_id
|
WHERE server_id IS NOT NULL
|
||||||
ORDER BY w.map, a.server_id
|
ORDER BY map, server_id
|
||||||
""") or []
|
""") or []
|
||||||
per_map = player_svc.get_players_per_map()
|
per_map = player_svc.get_players_per_map()
|
||||||
online_players = db.query(
|
online_players = db.query(
|
||||||
|
|||||||
Reference in new issue
Block a user