From 7f97087ddbef83c7ae84a24dd448c235ec299850 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 7 Jan 2015 01:05:49 +0100 Subject: [PATCH] fix /check old usernames --- check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check.py b/check.py index 701bbdf..89ecb2f 100644 --- a/check.py +++ b/check.py @@ -25,7 +25,8 @@ def get_country(data): def get_all_names(player): uuid = str(player.getUniqueId()).replace("-", "") names = json.load(urllib2.urlopen("https://api.mojang.com/user/profiles/%s/names" % uuid)) - return ", ".join(names) + # [ {"name": "some_name"}, {"name": "other_name"} ] + return ", ".join([name["name"] for name in names]) # combines data