diff --git a/WebHostLib/api/generate.py b/WebHostLib/api/generate.py index 2868a079..90280eba 100644 --- a/WebHostLib/api/generate.py +++ b/WebHostLib/api/generate.py @@ -65,7 +65,6 @@ def generate_api(): return {"text": "Uncaught Exception:" + str(e)}, 500 - @api_endpoints.route('/status/') def wait_seed_api(seed: UUID): seed_id = seed diff --git a/WebHostLib/api/user.py b/WebHostLib/api/user.py index 43a7bdcf..b68f80bb 100644 --- a/WebHostLib/api/user.py +++ b/WebHostLib/api/user.py @@ -16,7 +16,6 @@ def get_rooms(): "last_port": room.last_port, "timeout": room.timeout, "tracker": room.tracker, - "players": room.seed.multidata["names"] if room.seed.multidata else [["Singleplayer"]], }) return jsonify(response) @@ -28,6 +27,6 @@ def get_seeds(): response.append({ "seed_id": seed.id, "creation_time": seed.creation_time, - "players": seed.multidata["names"] if seed.multidata else [["Singleplayer"]], + "players": [(slot.player_name, slot.game) for slot in seed.slots], }) return jsonify(response) \ No newline at end of file