diff options
author | jomo <github@jomo.tv> | 2015-01-07 01:05:49 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-01-07 01:05:49 +0100 |
commit | 7f97087ddbef83c7ae84a24dd448c235ec299850 (patch) | |
tree | e82d4f9778efcd72c71b35535f3523fb8df4adb7 /check.py | |
parent | 8b2bf3bf725da552c1b0b53093291613b36d279e (diff) |
fix /check old usernames
Diffstat (limited to 'check.py')
-rw-r--r-- | check.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |