From f2ffb672aaa0056df33754c9b92a91df973c4886 Mon Sep 17 00:00:00 2001 From: Cat from Catalyst Date: Thu, 28 Sep 2023 14:32:45 +0100 Subject: [PATCH] Update app.py empty list has no .length() but len([]) is 0 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index dedc9fd..96df09c 100644 --- a/app.py +++ b/app.py @@ -70,7 +70,7 @@ 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( + if len(group_prefix) > 0 and not directory_group.startswith( tuple(group_prefix) ): print(f"skipping team {team.slug} - not in group prefix")