Fix: query world_partition for active server IDs

This commit is contained in:
Reditus committed 2026-05-15 02:56:18 +01:00
1 parent 7bfcafdaf6
commit 7c7e655de7
1 file changed
+4 -4
+4 -4
View File
@@ -391,10 +391,10 @@ def register_routes(app, services, settings):
def server_status():
try:
active_servers = db.query("""
SELECT a.server_id, w.map
FROM dune.active_server_ids a
LEFT JOIN dune.world_partition w ON a.server_id = w.server_id
ORDER BY w.map, a.server_id
SELECT server_id, map
FROM dune.world_partition
WHERE server_id IS NOT NULL
ORDER BY map, server_id
""") or []
per_map = player_svc.get_players_per_map()
online_players = db.query(