Skip to content

Commit cf226eb

Browse files
authored
Merge pull request #382 from Labelbox/SE-1295
SE-1295: Update upsert_review_queue so quota_factor can accept 1.0 and 0.0
2 parents 6d2046c + 347a14b commit cf226eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Version 3.11.1 (2022-01-10)
33
## Fix
44
* Make `TypedArray` class compatible with `numpy` versions `>= 1.22.0`
5+
* `project.upsert_review_queue` quotas can now be in the inclusive range [0,1]
56

67
# Version 3.11.0 (2021-12-15)
78

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def upsert_review_queue(self, quota_factor):
681681
to reinitiate. Between 0 and 1.
682682
"""
683683

684-
if not 0. < quota_factor < 1.:
684+
if not 0. <= quota_factor <= 1.:
685685
raise ValueError("Quota factor must be in the range of [0,1]")
686686

687687
id_param = "projectId"

0 commit comments

Comments
 (0)