Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudiwa Matanda authored and Mudiwa Matanda committed Jan 29, 2024
1 parent 4d6decf commit 1134257
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions home/import_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def __init__(
self.locale = locale
self.locale_map: dict[str, Locale] = {}
self.shadow_pages: dict[PageId, ShadowContentPage] = {}
self.go_to_page_buttons: dict[
PageId, dict[int, list[dict[str, Any]]]
] = defaultdict(lambda: defaultdict(list))
self.go_to_page_buttons: dict[PageId, dict[int, list[dict[str, Any]]]] = (
defaultdict(lambda: defaultdict(list))
)

def locale_from_display_name(self, langname: str) -> Locale:
if langname not in self.locale_map:
Expand Down
8 changes: 5 additions & 3 deletions home/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ def profile_field(self, obj):
def page(self, obj):
if obj.pages:
return [
p.value["contentpage"].slug
if p.value and "contentpage" in p.value
else ""
(
p.value["contentpage"].slug
if p.value and "contentpage" in p.value
else ""
)
for p in obj.pages
]
return ["-"]
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black
ruff
black==24.1.1
ruff==0.1.14
responses
pytest
pytest==8.0.0
pytest-django
pytest-cov
pytest-xdist
Expand Down

0 comments on commit 1134257

Please sign in to comment.