diff --git a/gitinspector/gravatar.py b/gitinspector/gravatar.py index 9f2fd02..12c2073 100644 --- a/gitinspector/gravatar.py +++ b/gitinspector/gravatar.py @@ -21,13 +21,13 @@ import format import hashlib import urllib -def get_url(email): +def get_url(email, size=20): md5hash = hashlib.md5(email.lower().strip()).hexdigest() base_url = "http://www.gravatar.com/avatar/" + md5hash params = None if format.get_selected() == "html": - params = {"default": "identicon", "size": 20} + params = {"default": "identicon", "size": size} elif format.get_selected() == "xml": params = {"default": "identicon"}