Fixed a bug in the get_page function

This commit is contained in:
Manuel Cortez 2016-07-07 13:23:49 -05:00
parent 5b655d7889
commit a66b35190f

View File

@ -273,7 +273,7 @@ class vkSession(object):
data2 = {"profiles": [], "groups": []} data2 = {"profiles": [], "groups": []}
for i in data["items"]: for i in data["items"]:
data2["profiles"].append(i) data2["profiles"].append(i)
self.process_usernames(data2) self.process_usernames(data2)
if data.has_key("profiles") and data.has_key("groups"): if data.has_key("profiles") and data.has_key("groups"):
self.process_usernames(data) self.process_usernames(data)
else: else: