Skip to content

Commit b5e247a

Browse files
author
Val Brodsky
committed
Update _create_data_rows_sync to user create_data_rows
1 parent 3fa003e commit b5e247a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,8 @@ def _create_data_rows_sync(self,
206206
raise ValueError(
207207
"file_upload_thread_count must be a positive integer")
208208

209-
upload_items = self._separate_and_process_items(items)
210-
specs = DataRowCreateItem.build(self.uid, upload_items)
211-
task: DataUpsertTask = self._exec_upsert_data_rows(
212-
specs, file_upload_thread_count)
209+
task: DataUpsertTask = self.create_data_rows(items,
210+
file_upload_thread_count)
213211
task.wait_till_done()
214212

215213
if task.has_errors():

0 commit comments

Comments
 (0)