Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoduykhanh committed Apr 9, 2018
1 parent 5354d27 commit 060e091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ def email_to_gravatar_url(email="", size=100):
"""
AD doesn't necessarily have email
"""
if email is None:
email = ""

hash_string = hashlib.md5(email.encode('utf-8')).hexdigest()
return "https://s.gravatar.com/avatar/{0}?s={1}".format(hash_string, size)

Expand Down
1 change: 0 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:
container_name: powerdns-admin
mem_limit: 256M
memswap_limit: 256M
tty: true
command: /usr/bin/supervisord -c /etc/supervisord.conf
ports:
- "9191:9191"
Expand Down

0 comments on commit 060e091

Please sign in to comment.