Skip to content

Commit 88f79d9

Browse files
author
Matt Sokoloff
committed
create placeholder id once
1 parent a11c785 commit 88f79d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelbox/schema/bulk_import_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,11 @@ def validate_subclasses(cls, value, field):
632632
#Create uuid and datarow id so we don't have to define classification objects twice
633633
#This is caused by the fact that we require these ids for top level classifications but not for subclasses
634634
results = []
635+
dummy_id = 'child'.center(25, '_')
635636
for row in value:
636637
results.append({
637638
**row, 'dataRow': {
638-
'id': 'child'.center(25, '_')
639+
'id': dummy_id
639640
},
640641
'uuid': str(uuid4())
641642
})

0 commit comments

Comments
 (0)