Skip to content

Conversation

@mkozik-lb
Copy link
Contributor

Adds a new method get_label_count to the Project class, which allows to effectively find how many labels are in the project. Our customers would do this before:

labels_from_labelbox = sum([1 for _ in target_project.labels()])

@mkozik-lb mkozik-lb requested review from a team, apollonin and mnoszczak January 23, 2024 16:18
@vbrodsky
Copy link
Contributor

Adds a new method get_label_count to the Project class, which allows to effectively find how many labels are in the project. Our customers would do this before:

labels_from_labelbox = sum([1 for _ in target_project.labels()])

I do not find the labels() method

}"""

res = self.client.execute(query_str, {'projectId': self.uid})
return res["project"]["labelCount"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any error reporting? I.e. what happens if mutation blows up or returns an error?

@mkozik-lb mkozik-lb merged commit 4bdf851 into develop Jan 25, 2024
@mkozik-lb mkozik-lb deleted the mkozik/qqc-2962 branch January 25, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants