aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/mutual_friends.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-20 04:35:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-20 04:35:36 +0300
commit4db0712d42144382371716536ef443c710e74d0e (patch)
treeb01a8f7c30b918567d39aca4d37af93aef632551 /bin/mutual_friends.py
parenttrack_status.py: refactoring (diff)
downloadvk-scripts-4db0712d42144382371716536ef443c710e74d0e.tar.gz
vk-scripts-4db0712d42144382371716536ef443c710e74d0e.zip
mutual_friends.py: refactoring
Diffstat (limited to '')
-rw-r--r--bin/mutual_friends.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mutual_friends.py b/bin/mutual_friends.py
index e58315d..07e1d95 100644
--- a/bin/mutual_friends.py
+++ b/bin/mutual_friends.py
@@ -12,14 +12,14 @@ import sys
from vk.api import API, Language
from vk.user import UserField
-_OUTPUT_FIELDS = UserField.UID, UserField.FIRST_NAME, UserField.LAST_NAME
+_OUTPUT_USER_FIELDS = UserField.UID, UserField.FIRST_NAME, UserField.LAST_NAME
def _query_friend_list(api, user):
- return api.friends_get(user.get_uid(), fields=_OUTPUT_FIELDS)
+ return api.friends_get(user.get_uid(), fields=_OUTPUT_USER_FIELDS)
def _filter_user_fields(user):
new_user = OrderedDict()
- for field in _OUTPUT_FIELDS:
+ for field in _OUTPUT_USER_FIELDS:
new_user[str(field)] = user[field] if field in user else None
return new_user