From d643f5d0fd106a19b273f187f6f3f08ecb3f28d6 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 19 Mar 2022 14:59:41 +0100 Subject: Don't list enterprise grid top level teams The individual teams in the enterprise grid is still listed. --- extract_token_from_browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extract_token_from_browser.py b/extract_token_from_browser.py index 34235ab..7a9f09d 100755 --- a/extract_token_from_browser.py +++ b/extract_token_from_browser.py @@ -47,4 +47,5 @@ con.close() local_config = json.loads(local_config_str) for team in local_config["teams"].values(): - print(f"{team['name']}: /slack register {team['token']}:{cookie_d_value}") + if not team["id"].startswith("E"): + print(f"{team['name']}: /slack register {team['token']}:{cookie_d_value}") -- cgit