Skip to content

Commit

Permalink
Make library store order deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Dec 4, 2024
1 parent 1a20bac commit e779dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/library/management/commands/storelibraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def handle(self, *args, **options):
StoredLibrary.__init_class__()
path = Path(options.get("path") or LIBRARIES_PATH)
if path.is_dir():
library_files = [
library_files = sorted(
f for f in path.iterdir() if f.is_file and f.suffix == ".yaml"
]
)
else:
library_files = [path]
for fname in library_files:
Expand Down

0 comments on commit e779dce

Please sign in to comment.