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 Jan 13, 2025
1 parent 7dffbe4 commit 899c6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_mail_analytics/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_queryset(self, request):

@admin.display(description="Success Rate")
def rate(self, instance):
return f"{int(100*(instance.opened/instance.sent))}%"
return f"{int(100 * (instance.opened / instance.sent))}%"

@admin.display(description="Opened")
def opened(self, instance):
Expand Down Expand Up @@ -137,7 +137,7 @@ def body_html(self, obj):

@admin.display(description="Success Rate")
def rate(self, instance):
return f"{int(100*(instance.opened/instance.sent))}%"
return f"{int(100 * (instance.opened / instance.sent))}%"

@admin.display(description="Opened")
def opened(self, instance):
Expand Down

0 comments on commit 899c6d2

Please sign in to comment.