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 Jun 3, 2024
1 parent ab7e872 commit 9396a46
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions sandbox/conf/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
django 4.2.1
"""

from pathlib import Path

import environ
Expand Down
1 change: 1 addition & 0 deletions sandbox/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""config URL Configuration 4.1"""

from django.conf import settings
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
Expand Down
1 change: 0 additions & 1 deletion src/posts/views/post_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class PostList(PostListMenuMixin, ListView):

"""display only public posts"""

template_name = "posts/post_list.html"
Expand Down
8 changes: 5 additions & 3 deletions src/profiles/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ def changelist_view(self, request, extra_context=None):
{
"period": x["period"],
"sub_total": x["sub_total"] or 0,
"pct": ((x["sub_total"] or 0) - low) / (high - low) * 100
if high > low
else 0,
"pct": (
((x["sub_total"] or 0) - low) / (high - low) * 100
if high > low
else 0
),
}
for x in calc_qs
]
Expand Down

0 comments on commit 9396a46

Please sign in to comment.