Skip to content

Commit

Permalink
fix: Sort mods in readme, missing CAD files are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
FHeilmann committed Dec 21, 2023
1 parent 15674d5 commit fb3982f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion voron_toolkit/tools/mod_structure_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _check_mods(self: Self) -> None:
continue

if "cad" in metadata and not metadata["cad"]:
logger.warning("Mod '{}' has no CAD files!", mod_folder)
logger.error("Mod '{}' has no CAD files!", mod_folder)
self.result_items[ExtendedResultEnum.FAILURE].append(
ItemResult(
item=mod_folder_relative,
Expand Down
2 changes: 1 addition & 1 deletion voron_toolkit/tools/readme_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run(self: Self) -> None:
readme_rows: list[list[str]] = []
prev_username: str = ""
logger.info("Generating rows for {} mods", len(mods))
for mod in mods:
for mod in sorted(mods, key=lambda x: x["path"]):
readme_rows.append(
[
mod["creator"] if mod["creator"] != prev_username else "",
Expand Down

0 comments on commit fb3982f

Please sign in to comment.