Skip to content

Commit af40d2c

Browse files
Drew KaulDrew Kaul
authored andcommitted
use from_json to construct AsyncJob
1 parent d72166e commit af40d2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nucleus/dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
DEFAULT_ANNOTATION_UPDATE_MODE,
2525
EXPORTED_ROWS,
2626
FRAMES,
27-
JOB_ID_KEY,
2827
NAME_KEY,
2928
REFERENCE_IDS_KEY,
3029
REQUEST_ID_KEY,
@@ -279,7 +278,7 @@ def upload_scenes(
279278
payload={REQUEST_ID_KEY: request_id, UPDATE_KEY: update},
280279
route=f"{self.id}/upload_scenes?async=1",
281280
)
282-
return AsyncJob(response["job_id"], self._client)
281+
return AsyncJob.from_json(response, self._client)
283282

284283
# TODO: create client method for sync scene upload
285284
response = self._client.make_request(

0 commit comments

Comments
 (0)