From 5d8a2c7c8335c7736d420ffeffa2456eda2b80dd Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 21 Jun 2016 00:59:58 +0300 Subject: replace users' "screen names" with their "domains" --- bin/online_duration.py | 2 +- vk/tracking/db/record.py | 2 +- vk/tracking/status_tracker.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/online_duration.py b/bin/online_duration.py index b462b1a..f074b08 100644 --- a/bin/online_duration.py +++ b/bin/online_duration.py @@ -42,7 +42,7 @@ _OUTPUT_USER_FIELDS = ( UserField.UID, UserField.FIRST_NAME, UserField.LAST_NAME, - UserField.SCREEN_NAME, + UserField.DOMAIN, ) class OutputConverterCSV: 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)} -- cgit v1.2.3