Skip to content

Commit

Permalink
Added sorting to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfy76700 committed Mar 17, 2024
1 parent 48458fd commit 167c2e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .utilities/generate_controller_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def process_manufacturer(path, level=1):
with open(f"{path}/config.json", "rt", encoding="utf-8") as json_file:
manufacturer = json.loads(json_file.read())
list_folders = glob.glob(f"{path}/*/")
list_folders.sort()
if not list_folders:
return("")
result = f"{'#'*level} {manufacturer['name']}\n\n<details>\n\n"
Expand All @@ -112,6 +113,7 @@ def process_category(path, level=1):
with open(f"{path}/config.json", "rt", encoding="utf-8") as json_file:
category = json.loads(json_file.read())
list_folders = glob.glob(f"{path}/*/")
list_folders.sort()
if not list_folders:
return("")
result = f"{'#'*level} {category['name']}\n\n*{category['desc']}*\n\n<details>\n\n"
Expand Down

0 comments on commit 167c2e3

Please sign in to comment.