Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 10, 2022
1 parent e8fa474 commit c8bcdb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions avatar/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def get_avatar_url(cls, user, size):
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)
1 change: 0 additions & 1 deletion avatar/templates/avatar/initials.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
{{ kwargs.style }}'
{% for key, value in kwargs.items %}{% if key != 'style' %}{{ key }}="{{ value }}" {% endif %}{% endfor %}>
{{ initials }}</span>

0 comments on commit c8bcdb4

Please sign in to comment.