forked from orbit-oss/flask
Started working on documentation.
So far just the stable parts :)
This commit is contained in:
parent
b15ad39427
commit
4ec7d2a0d8
9 changed files with 641 additions and 9 deletions
|
|
@ -57,7 +57,7 @@ def format_datetime(timestamp):
|
|||
def gravatar_url(email, size=80):
|
||||
"""Return the gravatar image for the given email address"""
|
||||
return 'http://www.gravatar.com/avatar/%s?d=identicon&s=%d' % \
|
||||
(md5(email.lower().encode('utf-8')).hexdigest(), size)
|
||||
(md5(email.strip().lower().encode('utf-8')).hexdigest(), size)
|
||||
|
||||
|
||||
@app.request_init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue