getUserInfo fixed for py3

This commit is contained in:
thekindlyone
2016-09-01 18:57:00 +05:30
parent 1a5adb5e38
commit b4e3b1aca3

View File

@@ -566,7 +566,7 @@ class Client(object):
data = {"ids[{}]".format(i):user_id for i,user_id in enumerate(user_ids)} data = {"ids[{}]".format(i):user_id for i,user_id in enumerate(user_ids)}
r = self._post(UserInfoURL, data) r = self._post(UserInfoURL, data)
info = get_json(r.text) info = get_json(r.text)
full_data= [details for profile,details in info['payload']['profiles'].iteritems()] full_data= [details for profile,details in info['payload']['profiles'].items()]
if len(full_data)==1: if len(full_data)==1:
full_data=full_data[0] full_data=full_data[0]
return full_data return full_data