Skip to content

Commit

Permalink
qrgen: sort by file names
Browse files Browse the repository at this point in the history
  • Loading branch information
hrw committed May 10, 2024
1 parent 7d54118 commit 22d1ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion badger_os/examples/qrgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Load all available QR Code Files
try:
CODES = [f for f in os.listdir("/qrcodes") if f.endswith(".txt")]
CODES = sorted([f for f in os.listdir("/qrcodes") if f.endswith(".txt")])
TOTAL_CODES = len(CODES)
except OSError:
pass
Expand Down

0 comments on commit 22d1ff8

Please sign in to comment.