diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2018-03-03 15:11:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2018-03-03 15:11:46 +0300 |
commit | 0ac93e26d3b2abe6704095f1ba050a649edd33bb (patch) | |
tree | 92b493309fcc0950ee60dc5dba5a469954b2e1ee | |
parent | switch to VK API version 5.73 (diff) | |
download | vk-scripts-0ac93e26d3b2abe6704095f1ba050a649edd33bb.tar.gz vk-scripts-0ac93e26d3b2abe6704095f1ba050a649edd33bb.zip |
no more user.screen_name
Can't find any mention of it in the docs.
-rw-r--r-- | vk/user.py | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -44,7 +44,6 @@ class UserField(Enum): DOMAIN = 'domain' ONLINE = 'online' LAST_SEEN = 'last_seen' - SCREEN_NAME = 'screen_name' def __str__(self): return self.value @@ -183,15 +182,3 @@ class User(Hashable, MutableMapping): def get_last_seen_platform(self): return self[UserField.LAST_SEEN].get_platform() - - def has_screen_name(self): - return UserField.SCREEN_NAME in self - - def get_screen_name(self): - if self.has_screen_name(): - return self[UserField.SCREEN_NAME] - else: - return 'id' + str(self.get_uid()) - - def set_screen_name(self, name): - self[UserField.SCREEN_NAME] = name |