Skip to content

Commit 31eee07

Browse files
author
Matt Sokoloff
committed
recommended changes
1 parent e2e3a24 commit 31eee07

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
# Next Release:
4+
* Added `dataset.export_data_rows()` which returns all `DataRows` for a `Dataset`.
5+
36
# Version 2.6.0 (2021-06-11)
47
## Fix
58
* Upated `create_mask_ndjson` helper function in `image_mal.ipynb` to use the color arg

labelbox/schema/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def data_row_for_external_id(self, external_id):
233233
return data_rows[0]
234234

235235
def export_data_rows(self, timeout_seconds=120):
236-
""" Returns a generator that produces all data rows that are currently attached to this datarow.
236+
""" Returns a generator that produces all data rows that are currently attached to this dataset.
237237
238238
Args:
239239
timeout_seconds (float): Max waiting time, in seconds.
@@ -243,7 +243,7 @@ def export_data_rows(self, timeout_seconds=120):
243243
LabelboxError: if the export fails or is unable to download within the specified time.
244244
"""
245245
id_param = "datasetId"
246-
query_str = """mutation GetQueuedDataRowsExportUrlPyApi($%s: ID!)
246+
query_str = """mutation GetDatasetDataRowsExportUrlPyApi($%s: ID!)
247247
{exportDatasetDataRows(data:{datasetId: $%s }) {downloadUrl createdAt status}}
248248
""" % (id_param, id_param)
249249
sleep_time = 2

0 commit comments

Comments
 (0)