From 4db0712d42144382371716536ef443c710e74d0e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 20 Jun 2016 04:35:36 +0300 Subject: mutual_friends.py: refactoring --- bin/mutual_friends.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3