Skip to content

Commit 0871af9

Browse files
committed
Return batch size from mutation response
1 parent 812956b commit 0871af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ def _create_batch_sync(self, name, dr_ids, global_keys, priority,
794794
timeout=180.0,
795795
experimental=True)["project"][method]
796796
batch = res['batch']
797-
batch['size'] = len(dr_ids)
797+
batch['size'] = res['batch']['size']
798798
return Entity.Batch(self.client,
799799
self.uid,
800800
batch,

0 commit comments

Comments
 (0)