[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-08-10 15:45:56 +00:00
parent e8fa4747f9
commit c8bcdb4a0c
2 changed files with 6 additions and 7 deletions

View file

@ -88,10 +88,10 @@ class InitialsAvatarProvider(object):
initials = user.username[:1]
initials = initials.upper()
context = {
'fontsize': (size * 1.1) / 2,
'initials': initials,
'hue': user.pk % 360,
'saturation': '65%',
'lightness': '60%',
"fontsize": (size * 1.1) / 2,
"initials": initials,
"hue": user.pk % 360,
"saturation": "65%",
"lightness": "60%",
}
return ('avatar/initials.html', context)
return ("avatar/initials.html", context)

View file

@ -9,4 +9,3 @@
{{ kwargs.style }}'
{% for key, value in kwargs.items %}{% if key != 'style' %}{{ key }}="{{ value }}" {% endif %}{% endfor %}>
{{ initials }}</span>