Fix various bugs and styling issues

This commit is contained in:
Joseph Schorr 2014-11-24 19:40:03 -05:00
parent 7bf96c506f
commit 0e13ef3ff8
6 changed files with 15 additions and 10 deletions

View file

@ -184,7 +184,7 @@ def status():
@app.route("/avatar/<avatar_hash>")
def avatar(avatar_hash):
def render_avatar(avatar_hash):
try:
size = int(request.args.get('size', 16))
except ValueError:
@ -424,10 +424,11 @@ def request_authorization_code():
'name': oauth_app.name,
'description': oauth_app.description,
'url': oauth_app.application_uri,
'avatar': avatar.compute_hash(oauth_app.avatar_email, name=oauth_app.name),
'organization': {
'name': oauth_app.organization.username,
'avatar': avatar.compute_hash(oauth_app.organization.email,
name=oauth_app.organization.name)
name=oauth_app.organization.username)
}
}