From 5bddcc7b368fa0594128f0f7fcb0b2e26959d77e Mon Sep 17 00:00:00 2001 From: Tarik Zegmott Date: Mon, 15 Apr 2024 16:54:32 -0400 Subject: [PATCH] fix(ls): seperate scopes by site Signed-off-by: Tarik Zegmott --- dtcli/ls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dtcli/ls.py b/dtcli/ls.py index b5f811a..1fca4de 100644 --- a/dtcli/ls.py +++ b/dtcli/ls.py @@ -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():