aboutsummaryrefslogtreecommitdiffstats
path: root/extract_token_from_browser.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-03-19 14:59:41 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2022-09-18 16:36:55 +0200
commitd643f5d0fd106a19b273f187f6f3f08ecb3f28d6 (patch)
tree5369cbf425bc04353967f92a4fe3fa3a947fa8b5 /extract_token_from_browser.py
parent73e1c7df0277fb3f3602f5ed6fa2a3e59b49b52e (diff)
downloadwee-slack-d643f5d0fd106a19b273f187f6f3f08ecb3f28d6.tar.gz
Don't list enterprise grid top level teams
The individual teams in the enterprise grid is still listed.
Diffstat (limited to 'extract_token_from_browser.py')
-rwxr-xr-xextract_token_from_browser.py3
1 files changed, 2 insertions, 1 deletions
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}")