From 7c7e655de72d219c8b63504831834b6ffd10028b Mon Sep 17 00:00:00 2001 From: Reditus Date: Fri, 15 May 2026 02:56:18 +0100 Subject: [PATCH] Fix: query world_partition for active server IDs --- app/routes/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routes/main.py b/app/routes/main.py index 05117f0..313c8a9 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -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(