Skip to content

Commit 0b50d79

Browse files
committed
fix(ls): other section for scopes that don't match list of sites
1 parent 5325f3f commit 0b50d79

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dtcli/ls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,15 @@ def list(
8080
title_style="bold magenta",
8181
)
8282
table.add_column("Scopes")
83+
matched = set()
8384
for site in ["chime", "kko", "gbo", "hco"]:
8485
for s in [_ for _ in results["scopes"] if site in _]:
8586
table.add_row(s)
87+
matched.add(s)
8688
table.add_section()
89+
other_scopes = [_ for _ in results["scopes"] if _ not in matched]
90+
for s in other_scopes:
91+
table.add_row(s)
8792
console.print(table)
8893

8994
if "larger_datasets" in results.keys():

0 commit comments

Comments
 (0)