Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Sep 19, 2024
1 parent ec92261 commit e2838b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.8
4 changes: 3 additions & 1 deletion src/plone/restapi/services/navigation/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ def navtree(self):
if brain_parent_path == navtree_path:
# This should be already provided by the portal_tabs_view
continue
if brain.exclude_from_nav and not f"{brain_path}/".startswith(f"{context_path}/"):
if brain.exclude_from_nav and not f"{brain_path}/".startswith(
f"{context_path}/"
):
# skip excluded items if they're not in our context path
continue
url = brain.getURL()
Expand Down

0 comments on commit e2838b0

Please sign in to comment.