Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
empty list has no .length() but len([]) is 0
  • Loading branch information
catscanner authored Sep 28, 2023
1 parent 8fcb9f1 commit f2ffb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f2ffb67

Please sign in to comment.