We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1521a commit fbc7a0cCopy full SHA for fbc7a0c
1 file changed
src/datalab_api/__init__.py
@@ -424,10 +424,10 @@ def _update_data_block(
424
425
if file_ids:
426
if len(file_ids) > 1:
427
- raise RuntimeError(
428
- "API does not currently support attaching multiple files in a block."
429
- )
430
- block_data["file_id"] = file_ids[0]
+ block_data["file_ids"] = file_ids
+ else:
+ block_data.pop("file_ids", None)
+ block_data["file_id"] = file_ids[0]
431
432
blocks_url = f"{self.datalab_api_url}/update-block/"
433
payload = {
0 commit comments