Skip to content

Commit b3f0d3d

Browse files
committed
fix
1 parent 90708e9 commit b3f0d3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

labelbox/schema/organization.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@ def get_resource_tags(self) -> List[ResourceTag]:
161161
query_str = """query GetOrganizationResourceTagsPyApi{organization{resourceTag{%s}}}""" % (
162162
query.results_query_part(ResourceTag))
163163

164-
return [
165-
ResourceTag(self.client, resourceTag)
166-
for resourceTag in res['createResourceTag']
167-
]
164+
return self.client.execute(query_str)['organization']['resourceTag']
168165

169166
def get_iam_integrations(self) -> List["IAMIntegration"]:
170167
"""

0 commit comments

Comments
 (0)