Skip to content

Commit 00d7020

Browse files
committed
[X-0] Add field definitions
1 parent 5bf3de0 commit 00d7020

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def validate_labeling_parameter_overrides(
8383

8484

8585
class Project(DbObject, Updateable, Deletable):
86-
""" A Project is a container that includes a labeling frontend, an ontology,
86+
"""A Project is a container that includes a labeling frontend, an ontology,
8787
datasets and labels.
8888
8989
Attributes:
@@ -96,6 +96,8 @@ class Project(DbObject, Updateable, Deletable):
9696
queue_mode (string)
9797
auto_audit_number_of_labels (int)
9898
auto_audit_percentage (float)
99+
is_benchmark_enabled (bool)
100+
is_consensus_enabled (bool)
99101
100102
created_by (Relationship): `ToOne` relationship to User
101103
organization (Relationship): `ToOne` relationship to Organization
@@ -123,6 +125,8 @@ class Project(DbObject, Updateable, Deletable):
123125
data_row_count = Field.Int("data_row_count")
124126
model_setup_complete: Field = Field.Boolean("model_setup_complete")
125127
upload_type: Field = Field.Enum(UploadType, "upload_type")
128+
is_benchmark_enabled = Field.Boolean("is_benchmark_enabled")
129+
is_consensus_enabled = Field.Boolean("is_consensus_enabled")
126130

127131
# Relationships
128132
created_by = Relationship.ToOne("User", False, "created_by")

0 commit comments

Comments
 (0)