Skip to content

Commit

Permalink
fix(ls): seperate scopes by site
Browse files Browse the repository at this point in the history
Signed-off-by: Tarik Zegmott <[email protected]>
  • Loading branch information
tjzegmott committed Apr 15, 2024
1 parent 6b32903 commit 5bddcc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dtcli/ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ def list(
title_style="bold magenta",
)
table.add_column("Scopes")
for s in results["scopes"]:
table.add_row(s)
for site in ["chime", "kko", "gbo", "hco"]:
for s in [_ for _ in results["scopes"] if site in _]:
table.add_row(s)
table.add_section()
console.print(table)

if "larger_datasets" in results.keys():
Expand Down

0 comments on commit 5bddcc7

Please sign in to comment.