diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 04:57:29 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 04:57:29 +0200 |
commit | 85f51015d5cb921ced8d145d826293af63c35b75 (patch) | |
tree | 831208c99fe2e8f2c006f711374e4c5559d5614e | |
parent | e2a9b64120e5a48ea07993b75f993d661906a746 (diff) | |
download | fingerchange-85f51015d5cb921ced8d145d826293af63c35b75.tar.xz |
Add the location if returned by the API
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | fingerchange.py | 2 |
1 files changed, 2 insertions, 0 deletions
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' |