From c22c810f4a3140830b36986cec26963cd2bd296e Mon Sep 17 00:00:00 2001 From: "C. Eric Mathey" <48801688+cemathey@users.noreply.github.com> Date: Wed, 8 Nov 2023 07:16:10 -0700 Subject: [PATCH] Add server number to get_status endpoint (#327) --- rcon/rcon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rcon/rcon.py b/rcon/rcon.py index 2e93cbdba..0fee0d39d 100644 --- a/rcon/rcon.py +++ b/rcon/rcon.py @@ -1050,6 +1050,7 @@ def get_status(self): "nb_players": slots, "short_name": os.getenv("SERVER_SHORT_NAME", None) or "HLL Rcon", "player_count": slots.split("/")[0], + "server_number": int(get_server_number()), } @ttl_cache(ttl=60 * 60 * 24)