Skip to content

Commit

Permalink
Changed naming from _get to _build
Browse files Browse the repository at this point in the history
  • Loading branch information
lleung030 committed Dec 5, 2023
1 parent dfe8e74 commit 05b7de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gravatar/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_gravatar_hash(email):


def get_gravatar_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAVATAR_DEFAULT_IMAGE):
return
return build_gravatar_url_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAVATAR_DEFAULT_IMAGE)


def build_gravatar_url_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAVATAR_DEFAULT_IMAGE):
Expand All @@ -51,7 +51,7 @@ def build_gravatar_url_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAV


def has_gravatar(email):
url = build_gravatar_url_for_email(email, default='404')
url = get_gravatar_for_email(email, default='404')
response = requests.get(url)
has_gravatar = response.status_code = 404
has_gravatar = response.status_code == 404
return has_gravatar

0 comments on commit 05b7de1

Please sign in to comment.