Removed size parameter from gravatar URL's in JSON output (#50).

This commit is contained in:
Adam Waldenberg 2015-12-17 03:08:33 +01:00
parent 6ef9936508
commit 9aa4aba336

View file

@ -32,9 +32,9 @@ def get_url(email, size=20):
base_url = "https://www.gravatar.com/avatar/" + md5hash base_url = "https://www.gravatar.com/avatar/" + md5hash
params = None params = None
if format.get_selected() == "html" or format.get_selected() == "json": if format.get_selected() == "html":
params = {"default": "identicon", "size": size} params = {"default": "identicon", "size": size}
elif format.get_selected() == "xml": elif format.get_selected() == "xml" or format.get_selected() == "json":
params = {"default": "identicon"} params = {"default": "identicon"}
return base_url + "?" + urlencode(params) return base_url + "?" + urlencode(params)