Sort ships alphanumerically
This commit is contained in:
parent
0e503a5804
commit
4fa770d117
2
app.py
2
app.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user