From a5d00e17c9ffdd0634be5ed27f313e1f94ecd674 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 6 Dec 2020 14:05:47 +0100 Subject: [PATCH] fix attribute access in user api --- WebHostLib/api/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHostLib/api/user.py b/WebHostLib/api/user.py index ec129394..43a7bdcf 100644 --- a/WebHostLib/api/user.py +++ b/WebHostLib/api/user.py @@ -28,6 +28,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": seed.multidata["names"] if seed.multidata else [["Singleplayer"]], }) return jsonify(response) \ No newline at end of file