1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-11-01 00:15:54 +00:00

Tiny code reformat

This commit is contained in:
Kfir Hadas 2017-07-27 23:29:25 +03:00
parent 42725d4a3c
commit 99c052c85f

View file

@ -507,8 +507,8 @@ class User(db.Model):
# Default image (https://en.gravatar.com/site/implement/images/#default-image)
'd': flask.url_for('static', filename='img/avatar/default.png', _external=True),
# Image rating (https://en.gravatar.com/site/implement/images/#rating)
'r': ('pg' if app.config['SITE_FLAVOR'] == 'nyaa' else
'x'), # Nyaa: PG-rated, Sukebei: X-rated
# Nyaa: PG-rated, Sukebei: X-rated
'r': 'pg' if app.config['SITE_FLAVOR'] == 'nyaa' else 'x',
}
# construct the url
return 'https://www.gravatar.com/avatar/{}?{}'.format(