Skip to content

Commit 0f03afc

Browse files
committed
Formatting
1 parent 9b276c7 commit 0f03afc

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

labelbox/schema/project.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -605,17 +605,15 @@ def create_batch(self,
605605
}
606606
""" % (method, method, query.results_query_part(Entity.Batch))
607607

608+
consensus_settings_dict = consensus_settings.dict(
609+
) if consensus_settings else None
608610
params = {
609611
"projectId": self.uid,
610612
"batchInput": {
611-
"name":
612-
name,
613-
"dataRowIds":
614-
dr_ids,
615-
"priority":
616-
priority,
617-
"consensusSettings":
618-
consensus_settings.dict() if consensus_settings else None
613+
"name": name,
614+
"dataRowIds": dr_ids,
615+
"priority": priority,
616+
"consensusSettings": consensus_settings_dict
619617
}
620618
}
621619

0 commit comments

Comments
 (0)