From 85f51015d5cb921ced8d145d826293af63c35b75 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 21 Jun 2015 04:57:29 +0200 Subject: Add the location if returned by the API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- fingerchange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fingerchange.py b/fingerchange.py index 4217cd4..a005d18 100644 --- a/fingerchange.py +++ b/fingerchange.py @@ -57,6 +57,8 @@ def format_user(user): msg += format_field('uid', user['user_id']) msg += format_field('name', user['display_name']) msg += format_field('reputation', user['reputation']) + if 'location' in user: + msg += format_field('location', user['location']) msg += format_field('profile', format_url(user['link'])) if 'website_url' in user: msg += format_field('website', format_url(user['website_url'])) + '\n' -- cgit v1.2.3-54-g00ecf