Get user information in the wall if there's not an user ID
This commit is contained in:
parent
44079d19d2
commit
e067de763a
@ -240,4 +240,6 @@ class vkSession(object):
|
||||
self.db["groups"][i["id"]] = i["name"]
|
||||
|
||||
def get_my_data(self):
|
||||
self.user_id = self.vk.client.users.get(fields="uid")[0]["id"]
|
||||
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"])
|
||||
|
Loading…
Reference in New Issue
Block a user