Skip to content

Commit

Permalink
Merge "Fixed the index display issue" into latest
Browse files Browse the repository at this point in the history
  • Loading branch information
grafuls authored and gerritforge-ltd committed Dec 5, 2024
2 parents 2287196 + 5dd0ca0 commit bd65bee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/quads/web/controller/dynamic_nav/dynamic_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def sort_list(self, menu_list: list, sort_keyword: str = None, sort_dir: bool =
numbered_links.append(link)
except ValueError:
unnumbered_links.append(link)

sorted_numbered_links = sorted(numbered_links, key=lambda x: x if sort_dir else x[sort_keyword])
sorted_unnumbered_links = sorted(unnumbered_links, key=lambda x: x if sort_dir else x[sort_keyword])

Expand Down Expand Up @@ -64,7 +63,7 @@ def get_files(self, file_path: str, exclude_dirs: str = None, parent_dir: str =
if parent_dir:
url_args.update({"directory": parent_dir, "endpoint": "content.dynamic_content_sub"})
link = url_args
link["text"] = file.replace(".html", "").replace("_", " ")
link["text"] = file.replace(".html", "")
links.append(link)
else:
with open(os.path.join(file_path, file)) as f:
Expand Down

0 comments on commit bd65bee

Please sign in to comment.