Added album load an creation at startup

This commit is contained in:
2016-06-19 12:25:06 -05:00
parent 47bab9d2c4
commit b278c8cde9
4 changed files with 64 additions and 5 deletions

View File

@@ -268,7 +268,7 @@ class vkSession(object):
if data != None:
if type(data) == dict:
num = self.order_buffer(name, data["items"], show_nextpage)
if data["items"][0].has_key("first_name"):
if len(data["items"]) > 0 and data["items"][0].has_key("first_name"):
for i in data["items"]:
self.db["users"][i["id"]] = u"{0} {1}".format(i["first_name"], i["last_name"])
if data.has_key("profiles") and data.has_key("groups"):