Fixing file sorting, using Path API instead.

This commit is contained in:
José Manuel Barroso Galindo
2025-06-07 19:31:14 +02:00
committed by GitHub
parent 04589b4848
commit 64ffba0468

View File

@@ -74,7 +74,7 @@ def build_database(source_dir: str):
] + external_files
# We want to place the .rbf files at the end, so that they can receive
# the mad terms from the related .mra's
all_files.sort(key=lambda t: t[0][-4:].lower() == '.rbf')
all_files.sort(key=lambda t: t[0].suffix.lower() == '.rbf')
builder = DatabaseBuilder(tags)
for file, description, filter_terms in all_files: