Skip to content

Commit

Permalink
review: use ip/port fields in CLI's JSON output
Browse files Browse the repository at this point in the history
in anticipation of py-mine#536

Co-authored-by: Perchun Pak <[email protected]>
  • Loading branch information
katrinafyi and PerchunPak authored Jul 20, 2024
1 parent 890d378 commit 80079b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcstatus/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def json(server: SupportedServers) -> int:
# TODO: QueryResponse is not (yet?) a dataclass
data["query"] = qdata = {}

qdata["host_ip"] = query_res.raw["hostip"]
qdata["host_port"] = query_res.raw["hostport"]
qdata["ip"] = query_res.raw["hostip"]
qdata["port"] = query_res.raw["hostport"]
qdata["map"] = query_res.map
qdata["plugins"] = query_res.software.plugins
qdata["raw"] = query_res.raw
Expand Down

0 comments on commit 80079b3

Please sign in to comment.