Skip to content

Commit 99c0190

Browse files
author
Matt Sokoloff
committed
rename and format
1 parent ea3281b commit 99c0190

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

labelbox/schema/data_row_metadata.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,8 @@ def bulk_export(self, data_row_ids: List[str]) -> List[DataRowMetadata]:
346346

347347
if not len(data_row_ids):
348348
raise ValueError("Empty list passed")
349-
# TODO: Fix the name here. This should not be deletes!!!!!!!!!!!!!!!!!!!
350-
def _bulk_export(
351-
deletes: List[_DeleteBatchDataRowMetadata]
352-
) -> List[DataRowMetadata]:
349+
350+
def _bulk_export(_data_row_ids: List[str]) -> List[DataRowMetadata]:
353351
query = """query dataRowCustomMetadataPyApi($dataRowIds: [ID!]!) {
354352
dataRowCustomMetadata(where: {dataRowIds : $dataRowIds}) {
355353
dataRowId
@@ -362,7 +360,8 @@ def _bulk_export(
362360
"""
363361
return self.parse_metadata(
364362
self.client.execute(
365-
query, {"dataRowIds": deletes})['dataRowCustomMetadata'])
363+
query,
364+
{"dataRowIds": _data_row_ids})['dataRowCustomMetadata'])
366365

367366
return _batch_operations(_bulk_export,
368367
data_row_ids,

0 commit comments

Comments
 (0)