From 9aa4aba336f382cca0fc95e7b0ce7e8c3add39d5 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 17 Dec 2015 03:08:33 +0100 Subject: [PATCH] Removed size parameter from gravatar URL's in JSON output (#50). --- gitinspector/gravatar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitinspector/gravatar.py b/gitinspector/gravatar.py index 366aa2d..1ca5070 100644 --- a/gitinspector/gravatar.py +++ b/gitinspector/gravatar.py @@ -32,9 +32,9 @@ def get_url(email, size=20): base_url = "https://www.gravatar.com/avatar/" + md5hash params = None - if format.get_selected() == "html" or format.get_selected() == "json": + if format.get_selected() == "html": params = {"default": "identicon", "size": size} - elif format.get_selected() == "xml": + elif format.get_selected() == "xml" or format.get_selected() == "json": params = {"default": "identicon"} return base_url + "?" + urlencode(params)