Skip to content

Commit

Permalink
p.permalink(lang) -> p.permalink()
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyslbs committed Nov 2, 2016
1 parent 8a38615 commit bd62af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v7/navstories/navstories.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def set_site(self, site):
new = []
newsub = {}
for p in site.pages:
permalink = p.permalink(lang)
s_candidates = [s for s in navstories_paths if permalink.startswith(s)]
permalink = p.permalink()
if not s_candidates:
continue
# get longest path
Expand All @@ -66,9 +66,9 @@ def set_site(self, site):
if not navpath[0] in newsub:
newsub[navpath[0]] = []
# Add page to key
newsub[navpath[0]].append((p.permalink(lang), p.title(lang)))
newsub[navpath[0]].append((p.permalink(), p.title(lang)))
# Change new to be list of tuples(permalink, title)
new = [(p.permalink(lang), p.title(lang)) for p in new]
new = [(p.permalink(), p.title(lang)) for p in new]
# Add content of newsub (containg menu entries and submenus) to new (which was pages without subpages)
for k in sorted(newsub.keys()):
# Add submenu entries sorted by permalink
Expand Down

1 comment on commit bd62af2

@Kwpolska
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undo this!

Please sign in to comment.