Skip to content

Commit

Permalink
Add server number to get_status endpoint (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey authored Nov 8, 2023
1 parent b7d507b commit c22c810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rcon/rcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c22c810

Please sign in to comment.