From f62ad0780e2fb6e387fd4f18a05050377e98f207 Mon Sep 17 00:00:00 2001 From: Jared Murrell Date: Thu, 17 Aug 2023 21:37:35 -0400 Subject: [PATCH] formatted code --- app.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 205b2bd..624a680 100644 --- a/app.py +++ b/app.py @@ -70,7 +70,9 @@ def sync_team(client=None, owner=None, team_id=None, slug=None): try: directory_group = get_directory_from_slug(slug, custom_map, org) # If we're filtering on group prefix, skip if the group doesn't match - if group_prefix.length() > 0 and not directory_group.startswith(tuple(group_prefix)): + if group_prefix.length() > 0 and not directory_group.startswith( + tuple(group_prefix) + ): print(f"skipping team {team.slug} - not in group prefix") return directory_members = directory_group_members(group=directory_group) @@ -313,7 +315,14 @@ def sync_all_teams(): org = client.organization(i.account["login"]) for team in org.teams(): futures.append( - exe.submit(sync_team_helper, team, custom_map, client, org, group_prefix) + exe.submit( + sync_team_helper, + team, + custom_map, + client, + org, + group_prefix, + ) ) except Exception as e: print(f"DEBUG: {e}")