Skip to content

Commit

Permalink
Make sure wallpapers have constant order
Browse files Browse the repository at this point in the history
Directory listings are not guaranteed to be in any particular order.
  • Loading branch information
oakkitten committed May 17, 2022
1 parent ea6c10a commit f9e9f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anki_wallpaper/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def from_data(cls, data):
files_to_validate_via_opening = \
files if len(files) < 10 else files[:5] + files[5:]

for file in files:
for file in sorted(files):
if '"' in str(file):
result.errors.append(f"File path contains quotes: '{file}'")

Expand Down

0 comments on commit f9e9f7c

Please sign in to comment.