mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 08:38:26 +01:00
Removed size parameter from gravatar URL's in JSON output (#50).
This commit is contained in:
parent
6ef9936508
commit
9aa4aba336
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue