aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/tracking/status_tracker.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-03-03 15:40:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-03-03 15:40:10 +0300
commit96f1356aeafbdc026846cdbe1bcfcbbbd0ab3a7c (patch)
tree271e85f93792247725cd19f8064b65c7346acb68 /vk/tracking/status_tracker.py
parentnew platform, "VK Mobile" (diff)
downloadvk-scripts-96f1356aeafbdc026846cdbe1bcfcbbbd0ab3a7c.tar.gz
vk-scripts-96f1356aeafbdc026846cdbe1bcfcbbbd0ab3a7c.zip
fix Pylint warnings
Diffstat (limited to 'vk/tracking/status_tracker.py')
-rw-r--r--vk/tracking/status_tracker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vk/tracking/status_tracker.py b/vk/tracking/status_tracker.py
index 0dba0f9..e1a3216 100644
--- a/vk/tracking/status_tracker.py
+++ b/vk/tracking/status_tracker.py
@@ -47,7 +47,8 @@ class StatusTracker:
_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, deactivated_users=False)}
+ user_list = self._api.users_get(uids, self._USER_FIELDS, deactivated_users=False)
+ return {user.get_uid(): user for user in user_list}
def _notify_status(self, user):
for fn in self._on_initial_status: