Call to get_my_data after logging in VK

This commit is contained in:
Manuel Cortez 2018-12-10 00:47:25 -06:00
parent 69cd540329
commit 2d60e2b461

View File

@ -95,6 +95,7 @@ class vkSession(object):
self.settings["vk"]["token"] = self.vk.client._session.access_token
self.settings.write()
self.logged = True
self.get_my_data()
except ValueError:
self.settings["vk"]["user"] = ""
self.settings["vk"]["password"] = ""
@ -219,4 +220,3 @@ class vkSession(object):
log.debug("Getting user identifier...")
user = self.vk.client.users.get(fields="uid, first_name, last_name")
self.user_id = user[0]["id"]
# self.db["users"][self.user_id] = u"{0} {1}".format(user[0]["first_name"], user[0]["last_name"])