Skip to content

Commit ac43b36

Browse files
committed
Sort server files
1 parent bd92c20 commit ac43b36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def version():
3232
def filelist():
3333
root = Path(DATA_PATH).resolve()
3434
db_files = []
35-
for file_path in root.rglob('*.db'):
35+
for file_path in sorted(root.rglob('*.db'),
36+
key=lambda x: str(x.relative_to(root)).casefold()):
3637
if file_path.is_file():
3738
rel_path = file_path.relative_to(root)
3839

0 commit comments

Comments
 (0)