aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-21 00:59:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-21 00:59:58 +0300
commit5d8a2c7c8335c7736d420ffeffa2456eda2b80dd (patch)
tree509b852128c5dfca8fc613ea3c2d1a7a21ecbae4 /vk
parenttrack_status.py: skip deactivated users (diff)
downloadvk-scripts-5d8a2c7c8335c7736d420ffeffa2456eda2b80dd.tar.gz
vk-scripts-5d8a2c7c8335c7736d420ffeffa2456eda2b80dd.zip
replace users' "screen names" with their "domains"
Diffstat (limited to 'vk')
-rw-r--r--vk/tracking/db/record.py2
-rw-r--r--vk/tracking/status_tracker.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/vk/tracking/db/record.py b/vk/tracking/db/record.py
index 71dfde0..2bd17c1 100644
--- a/vk/tracking/db/record.py
+++ b/vk/tracking/db/record.py
@@ -15,7 +15,7 @@ class Record(MutableMapping):
UserField.UID,
UserField.FIRST_NAME,
UserField.LAST_NAME,
- UserField.SCREEN_NAME,
+ UserField.DOMAIN,
UserField.ONLINE,
LastSeenField.TIME,
LastSeenField.PLATFORM,
diff --git a/vk/tracking/status_tracker.py b/vk/tracking/status_tracker.py
index bb5f186..c357274 100644
--- a/vk/tracking/status_tracker.py
+++ b/vk/tracking/status_tracker.py
@@ -43,7 +43,7 @@ class StatusTracker:
if not isinstance(fn, Callable):
raise TypeError()
- _USER_FIELDS = UserField.SCREEN_NAME, UserField.ONLINE, UserField.LAST_SEEN
+ _USER_FIELDS = UserField.DOMAIN, UserField.ONLINE, UserField.LAST_SEEN,
def _query_status(self, uids):
return {user.get_uid(): user for user in self._api.users_get(uids, self._USER_FIELDS)}