Skip to content

Commit

Permalink
Make library store order deterministic (#1131)
Browse files Browse the repository at this point in the history
Co-authored-by: eric-intuitem <[email protected]>
  • Loading branch information
monsieurswag and eric-intuitem authored Dec 5, 2024
1 parent 1f13026 commit 9878308
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 9878308

Please sign in to comment.