Skip to content

Commit becfa28

Browse files
committed
missed the job part
1 parent f11f980 commit becfa28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nucleus/dataset.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def append(
241241
payload={REQUEST_ID_KEY: request_id, UPDATE_KEY: update},
242242
route=f"dataset/{self.id}/append?async=1",
243243
)
244-
return AsyncJob(response["job_id"], self._client)
244+
return AsyncJob(response[JOB_ID_KEY], self._client)
245245

246246
return self._client.populate_dataset(
247247
self.id,
@@ -365,6 +365,7 @@ def items_and_annotations(
365365
def delete_annotations(
366366
self, reference_ids: list = None, keep_history=False
367367
):
368-
return self._client.delete_annotations(
368+
response = self._client.delete_annotations(
369369
self.id, reference_ids, keep_history
370370
)
371+
return AsyncJob(response[JOB_ID_KEY], self._client)

0 commit comments

Comments
 (0)