Sort ships alphanumerically

This commit is contained in:
Robert Miles 2021-10-07 00:09:15 +00:00
parent 0e503a5804
commit 4fa770d117
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -137,7 +137,7 @@ def log(request):
@wrap_generator
def ships(request):
yield "# Ships and Outposts\n\n"
for ship in os.listdir("/var/gopher"):
for ship in sorted(os.listdir("/var/gopher")):
if not os.path.isdir(os.path.join("/var/gopher",ship)): continue
if ship in ("ships","log"): continue
entries = count_entries(ship)