sort list output
This commit is contained in:
@@ -259,12 +259,10 @@ class bam_utils:
|
|||||||
import sys
|
import sys
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
# print(bam_config.find_config())
|
# TODO(cam) multiple paths
|
||||||
|
|
||||||
path = paths[0]
|
path = paths[0]
|
||||||
del paths
|
del paths
|
||||||
|
|
||||||
# TODO(cam) multiple paths
|
|
||||||
payload = {
|
payload = {
|
||||||
"path": path,
|
"path": path,
|
||||||
}
|
}
|
||||||
@@ -276,6 +274,7 @@ class bam_utils:
|
|||||||
)
|
)
|
||||||
|
|
||||||
items = r.json().get("items_list", ())
|
items = r.json().get("items_list", ())
|
||||||
|
items.sort()
|
||||||
|
|
||||||
for (name_short, name_full, file_type) in items:
|
for (name_short, name_full, file_type) in items:
|
||||||
if file_type == "dir":
|
if file_type == "dir":
|
||||||
|
Reference in New Issue
Block a user